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 }

 

posted @ 2015-03-29 16:34  dominjune  阅读(125)  评论(0)    收藏  举报