标签:
打表找规律,发现是n%4==2就是yes,否则是no
#include<iostream>
using namespace std;
int main()
{
int n;
while (cin >> n)
{
if (n % 4 == 2)
cout << "yes" << endl;
else
cout << "no" << endl;
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/td15980891505/p/4307159.html