a003. 兩光法師占卜術
a003. 兩光法師占卜術
| 解題思路 : 簡易if-else判斷
| 程式碼 :
/*
a003. 兩光法師占卜術
https://zerojudge.tw/ShowProblem?problemid=a003
skyblue
AC (11ms, 356KB)
*/
#include <bits/stdc++.h>
using namespace std;
int main(){
int m, n;
scanf("%d%d", &m, &n);
int s;
s = (m*2 + n)%3;
if(s == 0)
printf("普通");
else if(s == 1)
printf("吉");
else if (s == 2)
printf("大吉");
return 0;
}
留言
張貼留言