摘要: #include<stdio.h>int main(){int a,b,c,s,x=0;for(a=1;a<=5;a++){ for(b=1;b<=5;b++) { if(a==b) continue; for(c=1;c<=5;c++) { if((c==a)||(c==b)) continue; 阅读全文
posted @ 2019-05-09 15:31 李天贤 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a,b,c=0,x,y,z; for(a=100;a<=999;a++) { x=a/100; y=(a/10)%10; z=a%10; b=x*x*x+y*y*y+z*z*z; if(a==b){ printf("%d\n",a); 阅读全文
posted @ 2019-05-09 15:09 李天贤 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){int a;long s=0;for(a=22;a<=1002;a=20+a)s=s+a;printf("%d",s); return 0;} #include<stdio.h>int main(){int a=22;long s=0;whil 阅读全文
posted @ 2019-05-09 14:47 李天贤 阅读(175) 评论(0) 推荐(0) 编辑