#10268: C解答


haha80086 (Xuan0526)


#include <stdio.h>

#include <stdlib.h>

 

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

 

int main(int argc, char *argv[]) {

 

int M=0 ,D=0 ,S=0;

scanf("%d %d",&M,&D);

S=(M*2+D)%3;

if(S==0){

printf("普通");

}

else if(S==1){

printf("吉");

}

else (printf("大吉"));

 

return 0;

}