数学题有一个共性,就是不论是什么数都成立,而且都很有规律,
可以根据这两个特性,枚举找到公式
F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2)
Print the word "yes" if 3 divide evenly into F(n).
#include<stdio.h>
int main()
{
long n;
while(scanf("%ld",&n) != EOF)
if (n%4==2)
printf("yes\n");
else
printf("no\n");
return 0;
}