0 1 2 3 4 5
no no yes no no no
#include<iostream> #include<cstring> using namespace std; int main() { int n; while(cin>>n) { if(n==2) cout<<"yes\n"; else if((n-2)%4==0) cout<<"yes\n"; else cout<<"no\n"; } return 0; }
原文地址:http://blog.csdn.net/hyccfy/article/details/37966099