摘要: #include int main() { for(int i=31;i<100;i++) {int s=i*i; int a=s/1000; int b=s%1000/100; int c=s%100/10; int d=s%10; if(a==b&&c==d) printf("%d\n",s); } ... 阅读全文
posted @ 2018-10-08 23:46 Estwind 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF) {if(a<=6||b<=2||(a<=20&&b<5)) printf("yes\n"); else printf("no\n"); } return 0; } 阅读全文
posted @ 2018-10-07 21:42 Estwind 阅读(927) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(1500+a*5+b*5>=1800) printf("A"); else if(1500+a*5+b*5>=1700) printf("B"); ... 阅读全文
posted @ 2018-10-07 21:22 Estwind 阅读(1575) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { if(((n%4==0)&&(n%100!=0))||(n%400==0)) printf("yes\n"); else printf("no\n"); } return 0; ... 阅读全文
posted @ 2018-10-07 19:57 Estwind 阅读(799) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int m,n; while(scanf("%d %d",&n,&m)!=EOF) { if(n>=m) printf("%d %d",n,m); else printf("%d %d",m,n); } return 0; } 阅读全文
posted @ 2018-10-07 15:09 Estwind 阅读(404) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF) { int n; if(b>a) { n=a; a=b; b=n; } if(c>a) { n=a; ... 阅读全文
posted @ 2018-10-07 15:09 Estwind 阅读(413) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a; while(scanf("%d",&a)!=EOF) { if (a%2==0) printf("odd\n"); else printf("even\n"); } return 0; } 阅读全文
posted @ 2018-10-07 15:09 Estwind 阅读(192) 评论(0) 推荐(0) 编辑
摘要: #include int main () { int a,b,c; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { if ((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c==a*a)) printf("yes"); else printf("no... 阅读全文
posted @ 2018-10-07 15:09 Estwind 阅读(758) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int n,m; while(scanf("%d%d",&n,&m)!=EOF){ if((m>=2*n)&&(m<=4*n)&&(m%2==0)) printf("%d %d\n",2*n-m/2,m/2-n); else printf("No\n"); } ... 阅读全文
posted @ 2018-10-07 15:08 Estwind 阅读(730) 评论(0) 推荐(0) 编辑
摘要: #include #includeint main() { int s; const double pi=acos(-1); double a,b; while(scanf("%ld",&s)!=EOF) { a=sin(s*pi/180); b=cos(s*pi/180); printf("%.2f\n%.2f\n",a,b); ... 阅读全文
posted @ 2018-09-28 23:31 Estwind 阅读(1574) 评论(0) 推荐(0) 编辑