链接:https://acs.jxnu.edu.cn/problem/HDU1021
题目:
描述:
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).
输入:
Input consists of a sequence of lines, each containing an integer n. (n < 1,000,000).
输出:
Print the word "yes" if 3 divide evenly into F(n).
Print the word "no" if not.
翻译如下
描述:
这里有另一种的斐波那契数: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2)。
输入:
输入包含一系列的行,每行包括一个整数n (n < 1,000,000)。
输出:
如果F(n)可以被3整除,则输出"yes",反之输出"no"。