#10268:


haha80086 (Xuan0526)

學校 : 國立中興大學
編號 : 52869
來源 : [140.120.13.47]
最後登入時間 :
2015-12-01 20:02:01
a003. 兩光法師占卜術 | From: [140.120.13.47] | 發表日期 : 2015-09-22 20:50

#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;

}

 
ZeroJudge Forum