hdu 1021 Fibonacci Again

http://acm.hdu.edu.cn/showproblem.php?pid=1021

 1 //直接从那些可以被3整除的n值找规律 
 2 #include <cstdio>
 3 #include <iostream>
 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         else
15             cout << "no" << endl;
16     }
17     return 0;
18 }
原文地址:https://www.cnblogs.com/dominjune/p/4375853.html