你以为这是斐波那契,然后一个个地求?那你就太天真了。。。在纸上写上几个你就会发现这题其实非常非常简单。。。
#include<iostream>
#include<cstring>
#include<vector>
#include<cstdio>
#include<algorithm>
using namespace std;
const int MAX = 10010;
int main()
{
int n;
while(cin>>n)
{
if((n-2)%4==0) cout<<"yes"<<endl;
else cout<<"no"<<endl;
}
return 0;
}