您的位置:首页 > 大数据 > 人工智能

hdu1021 Fibonacci Again

2015-05-09 15:02 309 查看
http://acm.hdu.edu.cn/showproblem.php?pid=1021

//找规律。。

#include<iostream>
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<queue>
using namespace std;

int main()
{
int n;
while(~scanf("%d",&n))
{
n=n-2;
if(n<0)
printf("no\n");
else
{
if(n%4==0)
{
printf("yes\n");
}
else
printf("no\n");
}
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: