Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class MyZerojudge {
- public static void main(String[] args) {
- Scanner cin = new Scanner(System.in);
- int month, date, fortune;
- while(cin.hasNext()) {
- month = cin.nextInt();
- date = cin.nextInt();
- fortune = (month*2+date)%3;
- switch(fortune)
- {
- case 0:
- System.out.println("普通");
- break;
- case 1:
- System.out.println("吉");
- break;
- case 2:
- System.out.println("大吉");
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement