Advertisement
gha890826

a003. 兩光法師占卜術

Apr 29th, 2021
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int M,D,S;
  5.  
  6. int main()
  7. {
  8.     while(cin>>M>>D)
  9.     {
  10.     S=(M*2+D)%3;
  11.     if(S==0)
  12.         cout<<"普通"<<endl;
  13.     else if(S==1)
  14.         cout<<"吉"<<endl;
  15.     else if(S==2)
  16.         cout<<"大吉"<<endl;
  17.     }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement