#45888: c++ 解答


yp11352173@yphs.tp.edu.tw (宵崎奏老婆(僅此一人))


#include using namespace std; int main(){ int M,D,S; scanf("%d %d",&M,&D); S=(M*2+D)%3; if(S==0) cout<<"普通\n"; else if(S==1) printf("吉\n"); if(S==2) printf("大吉\n"); }

#45909: Re: c++ 解答


yp11352173@yphs.tp.edu.tw (宵崎奏老婆(僅此一人))


#include using namespace std; int main(){ int M,D,S; scanf("%d %d",&M,&D); S=(M*2+D)%3; if(S==0) cout<<"普通\n"; else if(S==1) printf("吉\n"); if(S==2) printf("大吉\n"); }


阿忘記換行