# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2491 |
2013-07-22T13:19:29 Z |
tncks0121 |
개미 (GA4_ant) |
C++ |
|
64 ms |
884 KB |
#include<stdio.h>
long long int a,b,c;
long long int save;
int t;
int main(){
int i;
scanf("%d",&t);
for(i=0;i<t;i++){
scanf("%lld %lld %lld",&a,&b,&c);
if(a>=b&&a>=c){
save=b*2;
save=save*c;
}else if(b>=a&&b>=c){
save=a*2;
save=save*c;
}else{
save=a*2;
save=save*b;
}
a=a*a;
b=b*b;
c=c*c;
save=save+a+b+c;
printf("%lld\n",save);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
49 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
59 ms |
884 KB |
Output is correct |
2 |
Correct |
53 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
62 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
884 KB |
Output is correct |
2 |
Correct |
55 ms |
884 KB |
Output is correct |
3 |
Correct |
59 ms |
884 KB |
Output is correct |
4 |
Correct |
56 ms |
884 KB |
Output is correct |
5 |
Correct |
64 ms |
884 KB |
Output is correct |