#6179: 不知為何NA


B0006125 (程式好難)


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
    int s,d,m;
        while(scanf("%d,%d",&d,&m)!=0)
    s=(m*2+d)%3;
if(s==0)
printf("普通\n");

else if(s==1)
     printf("吉\n");
    
     else
     printf("大吉\n");
       return 0;
}

#6180: Re:不知為何NA


g995azaso (Old)


#include <stdio.h>
#include <stdlib.h>
int main()
{
    int s,d,m;
        while(scanf("%d %d",&m,&d)!=EOF){
    s=(m*2+d)%3;
if(s==0) 
printf("普通\n");

else if(s==1)
     printf("吉\n");
     
     else
     printf("大吉\n"); 
}
       return 0;
}
 
紅字為改過的部分
 
while沒加大括號
月份和日期顛倒了