Skip to content

Instantly share code, notes, and snippets.

@sinmaplewing
Created January 17, 2011 23:30
#include<iostream>
using namespace std;
int main()
{
int M, D, S;
while( cin >> M >> D )
{
S = ( M * 2 + D ) % 3 ;
switch( S )
{
case 0:
cout << "普通\n";
break;
case 1:
cout << "吉\n";
break;
case 2:
cout << "大吉\n";
break;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment