各位前輩大家好
這程式碼CE過不去,請大家幫我抓毛病,謝謝。
import java.util.Scanner;
public class a
{
public static void main(String[] args)
{
int M,D,S;
Scanner scanner = new Scanner(System.in);
M = scanner.nextInt();
D = scanner.nextInt();
S = (M * 2 + D) % 3;
if(S == 0)
{
System.out.println("普通");
}
else if(S == 1)
{
System.out.println("吉");
}
else if(S == 2)
{
System.out.println("大吉");
}
}
}