题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2060
http://acm.hdu.edu.cn/showproblem.php?pid=1021
代码:
#include <iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
if(n==0 || n==1 || n==3 || n==4 || n==5 || n==7)
printf("no\n");
else
if((n-2)%4==0)
printf("yes\n");
else
printf("no\n");
}
return 0;
}