摘要: #include "stdafx.h" #include "stdio.h" int main(){ int a,b,c,d,t,m; t=0; for(a=100;a<=998;a++){ b=a/100; c=a%100/10; d=a%10; if(a==b*b*b+c*c*c+d*d*d){ 阅读全文
posted @ 2019-04-22 15:43 p201821440019 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "stdio.h"int main(){long s,a;a=-2; for(s=2;s<=1002;s+=20){ a=a+s;}printf("%d",a);return 0;} 阅读全文
posted @ 2019-04-22 15:04 p201821440019 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "stdio.h"int main(){double a,rate,tax,profit;scanf("%lf",&a);if(a<500){ rate=0.00; tax=a*rate; profit=a-tax; printf("a=%lf 阅读全文
posted @ 2019-04-22 14:50 p201821440019 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "stdio.h"#include "math.h"int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a+b<=c){ printf("不能组成三角形");} else if(a+b>c&& 阅读全文
posted @ 2019-04-22 14:36 p201821440019 阅读(221) 评论(0) 推荐(0) 编辑