这个要找规律,如果..硬算的话输入999999这个数vc都停止辣
算出前面几个数发现是12022101八个数一轮回
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 0 2 2 1 0 1 1 2 0 2 2 1 0 1
#include <iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
if(2 == n%8 || 6 == n%8) cout<<"yes"<<endl; //因为可以输入0所以原本排在第3位和第7位的都要往前挪一下变成了2和6
else cout<<"no"<<endl;
}
return 0;
}