#12087: java解參考


asdr16783 (das)

學校 : 不指定學校
編號 : 64677
來源 : [110.50.150.117]
最後登入時間 :
2019-08-31 17:01:27
a003. 兩光法師占卜術 | From: [180.217.237.134] | 發表日期 : 2017-05-29 22:37

public class testaaaaaa {

public static void main(String[] args) {
java.util.Scanner bbb = new java.util.Scanner(System.in);
int a;
int b;
while (bbb.hasNext()) {
a = bbb.nextInt();
b = bbb.nextInt();
int c =(a*2+b)%3;
if (c ==0){
System.out.println("普通");
}
else if(c==1){
System.out.println("吉");
}
else{
System.out.println("大吉");
}
}
}
}

 
ZeroJudge Forum