题目链接:HDU1021
此题为典型的找打表找规律题。
CODE:
#include<iostream>
using namespace std;
int a[8]={1,2,0,2,2,1,0,1};
int main()
{
int n;
while(cin>>n)
{
if(!a[n%8])
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
}
}