标签:java nbsp abs hid int -o overflow top 语言
int sum=0;
for(int i=1;i<=1000;i++){
sum+=i%2?i:0;
}
printf("%d\n",sum/10);
int sum=0;
for(int i=1;i<=1000;i++){
sum+=i%2?i:0;
}
printf("%d\n",sum/10);
int sum=0;
for(int i=1;i<1000;i+=2){
sum+=i;
}
printf("%d\n",sum/10);
int sum=0;
for(int i=1;i<1000;i+=2){
sum+=i;
}
printf("%d\n",sum/10);
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a*a+b*b);
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a*a+b*b);
int a,b,c;
scanf("%d%d",&a,&b);
c=pow((double)a,2)+pow((double)b,2.0);
printf("%d\n",c);
int a,b,c;
scanf("%d%d",&a,&b);
c=pow((double)a,2)+pow((double)b,2.0);
printf("%d\n",c);
标签:java nbsp abs hid int -o overflow top 语言
原文地址:https://www.cnblogs.com/mlh1421/p/cf2ea409f02cd6db05868f247c82757c.html