Fibonacci Again http://acm.hdu.edu.cn/showproblem.php?pid=1021 #include<cstdio> int main() { // a[n]= 1, 2, 0, 2, 2, 1, 0, 1 int n; while (scanf("%d", &n) != 1) { if (n % 4 == 2)printf("yes\n"); else printf("no\n"); } return 0; }