n=int(input())
a=7
b=11
c=a+b
if n==0:
print(a)
elif n==1:
print(b)
else:
for i in range(1,n):
t=b
b=a+b
a=t
if b%3==0:
print ('yes')
else:
print ('no')
HDU 1021 Fibonacci Again Pyhton实现
猜你喜欢
转载自blog.csdn.net/lunzi3775/article/details/80738636
今日推荐
周排行