Skip to content

Instantly share code, notes, and snippets.

@fuyuanli
Created June 28, 2014 16:52
Show Gist options
  • Save fuyuanli/e511c3e739c2b893e81a to your computer and use it in GitHub Desktop.
Save fuyuanli/e511c3e739c2b893e81a to your computer and use it in GitHub Desktop.
a003
#include<iostream>
using namespace std;
int main()
{
int M,D,S;
while(cin>>M>>D){
S=(M*2+D)%3;
if(S==0){
cout<<"\n"<<"普通\n";
}
else if(S==1){
cout<<"\n"<<"吉\n";
}
else if (S==2){
cout<<"\n"<<"大吉\n";
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment