MAXLN
#include<iostream>
using namespace std;
int main(){
int T,r;
long long s;
scanf("%d",&T);
for(int tc = 1;tc <= T;++tc){
scanf("%d",&r);
s = 4*(long long)r * r;
printf("Case %d: %lld",tc,s);
puts(".25");
}
return 0;
}
#include<iostream>
using namespace std;
int main(){
int T,r;
long long s;
scanf("%d",&T);
for(int tc = 1;tc <= T;++tc){
scanf("%d",&r);
s = 4*(long long)r * r;
printf("Case %d: %lld",tc,s);
puts(".25");
}
return 0;
}
No comments:
Post a Comment