#45888: c++ 解答


yp11352173@yphs.tp.edu.tw (宋雨琦的緋聞女友)

學校 : 臺北市私立延平高級中學
編號 : 301676
來源 : [203.72.178.1]
最後登入時間 :
2025-02-20 11:09:36
a003. 兩光法師占卜術 | From: [111.248.247.101] | 發表日期 : 2025-04-24 22:12

#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-02-20 11:09:36
a003. 兩光法師占卜術 | From: [111.248.220.46] | 發表日期 : 2025-04-27 21:45

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


阿忘記換行

 
ZeroJudge Forum