#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int M,D,S;
do
{
scanf("%d %d",&M,&D);
S=(M*2+D)%3;
if(S==0)
printf("普通\n");
if(S==1)
printf("小吉\n");
if(S==2)
printf("大吉\n");
}
while(S>=0);
system("PAUSE");
return EXIT_SUCCESS;
}
執行可以
但是通過不行.....