#45888: c++ 解答


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

學校 : 臺北市私立延平高級中學
編號 : 301676
來源 : [203.72.178.1]
最後登入時間 :
2025-06-12 11:43:06

#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 (宵崎奏老婆(僅此一人))

學校 : 臺北市私立延平高級中學
編號 : 301676
來源 : [203.72.178.1]
最後登入時間 :
2025-06-12 11:43:06

#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"); }


阿忘記換行