#51502: 內有code


chen971023@gmail.com (ZiaynGZiyaNG)

學校 : 國立臺南第二高級中學
編號 : 291750
來源 : [122.121.172.45]
最後登入時間 :
2025-10-01 23:36:53

#include <iostream>

#include <string>

using namespace std;

int main()

{

int n, c = 0, k = 0, d = 0, a = 0;

cin >> n;

for (int i = 0; i < n; i++)

{

string s;

cin >> s;

if (s == "Get_Kill")

{

c++;

k++;

if (c < 3)

{

cout << "You have slain an enemie." << endl;

}

else if (c == 3)

{

cout << "KILLING SPREE!" << endl;

}

else if (c == 4)

{

cout << "RAMPAGE~" << endl;

}

else if (c == 5)

{

cout << "UNSTOPPABLE!" << endl;

}

else if (c == 6)

{

cout << "DOMINATING!" << endl;

}

else if (c == 7)

{

cout << "GUALIKE!" << endl;

}

else if (c >= 8)

{

cout << "LEGENDARY!" << endl;

}

}

else if (s == "Get_Assist")

{

a++;

}

else if (s == "Die")

{

if (c < 3)

{

cout << "You have been slained." << endl;

}

else if (c >= 3)

{

cout << "SHUTDOWN." << endl;

}

c = 0;

d++;

}

}

cout << k << "/" << d << "/" << a;

}
硬解