#28125: CPP


11030067@mail.hpsh.tp.edu.tw (和平110級鄧雨珊)

學校 : 臺北市立和平高級中學
編號 : 163096
來源 : [61.64.210.174]
最後登入時間 :
2022-10-23 16:54:59
b762. 英國聯蒙 | From: [219.85.131.7] | 發表日期 : 2021-11-14 23:08

#include <iostream>
using namespace std;

int main(){
int n;
while (cin >> n){
int kill=0, en_kill=0, assist=0, die=0;
string s;
while (n--){
cin >> s;
if (s=="Get_Assist"){
assist++;
continue;
}
if (s=="Die"){
die++;
if (en_kill<3){
cout <<"You have been slained.\n";
}
else {
cout <<"SHUTDOWN.\n";
}
en_kill=0;
continue;
}
if (s=="Get_Kill"){
kill++;
en_kill++;
}
switch (en_kill){
case 0:
break;
case 1 ... 2:
cout <<"You have slain an enemie.\n";
break;
case 3:
cout <<"KILLING SPREE!\n";
break;
case 4:
cout <<"RAMPAGE~\n";
break;
case 5:
cout <<"UNSTOPPABLE!\n";
break;
case 6:
cout <<"DOMINATING!\n";
break;
case 7:
cout <<"GUALIKE!\n";
break;
default:
cout <<"LEGENDARY!\n";
break;
}
}
cout << kill << "/" << die << "/" << assist << endl;
}
}
 
ZeroJudge Forum