M,D=input().split(' ')
if (int(M)*2+int(D))%3==2:
print('大吉')
elif (int(M)*2+int(D))%3==1:
print('吉')
else:
print('普通')
很好懂吧......
0.0
M,D=input().split(' ')
if (int(M)*2+int(D))%3==2:
print('大吉')
elif (int(M)*2+int(D))%3==1:
print('吉')
else:
print('普通')
很好懂吧......
0.0
很好懂
但因為太新手了所以有個問題想問
我在解題的時候想到阿如果 12月31號生 S就不會是0-2
變成我以為要以最大數(12*12 + 31)%3 = 58.3333
if S<58 則print 普通
elif 117>S>58 則print 吉
else S>117 則print 大吉
......
我是不是想太多..
M,D=input().split(' ')
if (int(M)*2+int(D))%3==2:
print('大吉')
elif (int(M)*2+int(D))%3==1:
print('吉')
else:
print('普通')
很好懂吧......
0.0
(12*12 + 31)%3 = 58.3333
???
你知道%是取餘數的意思嗎?