标签:
位置 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
数值 | 7 | 11 | 18 | 29 | 47 | 76 | 123 |
对三取模后的值 | 1 | 2 | 0 | 2 | 2 | 1 | 0 |
1 #include<cstdio> 2 #include<cmath> 3 #include<cstring> 4 #include<iostream> 5 using namespace std; 6 int main(){ 7 int n; 8 while(scanf("%d",&n)!=EOF) 9 { 10 n=n+2; 11 if (n%4==0) 12 printf("yes\n"); 13 else 14 printf("no\n"); 15 } 16 return 0; 17 }
标签:
原文地址:http://www.cnblogs.com/fakerv587/p/5179255.html