http://acm.hdu.edu.cn/showproblem.php?pid=10
Fibonacci鐨勫厰瀛愰棶棰樿鏀逛簡錛宮od 3鐨勯掓帹鏁板垪鑲畾寰楁湁寰幆鑺傚惂錛屾妸絎竴涓驚鐜壘鍒幫紝{1,2,0,2,2,1,0,1}錛屾伆濂芥槸浠庣涓浣嶅紑濮嬶紝OK錛?br />
#include<stdio.h>
int main()
{
int n,f[8]={1,2,0,2,2,1,0,1};
while (scanf("%d",&n)!=-1)
{
if (f[n%8]==0)
printf("yes\n");
else
printf("no\n");
}
}
锝愶綋錛氭按棰樺晩姘撮鍢涖?img src ="http://www.shnenglu.com/ArcTan/aggbug/166801.html" width = "1" height = "1" />
]]>