#13952: AC_HAHA


terry90209@gmail.com (Mini)

學校 : 不指定學校
編號 : 78019
來源 : [219.71.215.231]
最後登入時間 :
2018-04-03 22:44:44
b762. 英國聯蒙 | From: [110.28.168.153] | 發表日期 : 2018-05-20 10:55

public class B762{
public static void main(String[] args){
java.util.Scanner sc = new java.util.Scanner(System.in);
while(sc.hasNext()){
int round = sc.nextInt();
for(int i = 0 ; i < round; i++)
new Game(sc.next()).decide();
Game.getGrade();
}
}
}

class Game{
private static int killAll;
private static int dieAll;
private static int assAll;
private static int kill;
private String note;

public Game(String note){this.note = note;}

public void decide(){
if(note.equals("Get_Kill")){
kill++;
killAll++;
if(kill < 3) print("You have slain an enemie.");
else if(kill == 3) print("KILLING SPREE!");
else if(kill == 4) print("RAMPAGE~");
else if(kill == 5) print("UNSTOPPABLE!");
else if(kill == 6) print("DOMINATING!");
else if(kill == 7) print("GUALIKE!");
else print("LEGENDARY!");
}
else if(note.equals("Die")){
dieAll++;
if(kill < 3) print("You have been slained.");
else print("SHUTDOWN.");
kill = 0;
}
else{ assAll++; }
}

public static void getGrade(){
System.out.println(killAll + "/" + dieAll + "/" + assAll);
}

private void print(String s){ System.out.println(s);}
}

 
ZeroJudge Forum