Advertisement
Guest User

Untitled

a guest
Oct 25th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class MyZerojudge {
  3. public static void main(String[] args) {
  4. Scanner cin = new Scanner(System.in);
  5. int month, date, fortune;
  6. while(cin.hasNext()) {
  7. month = cin.nextInt();
  8. date = cin.nextInt();
  9. fortune = (month*2+date)%3;
  10.  
  11. switch(fortune)
  12. {
  13. case 0:
  14. System.out.println("普通");
  15. break;
  16. case 1:
  17. System.out.println("吉");
  18. break;
  19. case 2:
  20. System.out.println("大吉");
  21. break;
  22. }
  23. }
  24. }
  25. }
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement