1 //直接从那些可以被3整除的n值找规律 2 #include3 #include 4 5 using namespace std; 6 7 int main() 8 { 9 int n;10 while(cin >> n)11 {12 if((n-2) % 4 == 0)13 cout << "yes" << endl;14 else15 cout << "no" << endl;16 }17 return 0;18 }
本文共 368 字,大约阅读时间需要 1 分钟。
1 //直接从那些可以被3整除的n值找规律 2 #include3 #include 4 5 using namespace std; 6 7 int main() 8 { 9 int n;10 while(cin >> n)11 {12 if((n-2) % 4 == 0)13 cout << "yes" << endl;14 else15 cout << "no" << endl;16 }17 return 0;18 }
转载于:https://www.cnblogs.com/dominjune/p/4375853.html