Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int M,D,S;
- int main()
- {
- while(cin>>M>>D)
- {
- S=(M*2+D)%3;
- if(S==0)
- cout<<"普通"<<endl;
- else if(S==1)
- cout<<"吉"<<endl;
- else if(S==2)
- cout<<"大吉"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement