# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2492 |
2013-07-22T13:19:35 Z |
tncks0121 |
개미 (GA4_ant) |
C++ |
|
68 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 |
43 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 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 |
54 ms |
884 KB |
Output is correct |
2 |
Correct |
68 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
66 ms |
884 KB |
Output is correct |
2 |
Correct |
57 ms |
884 KB |
Output is correct |
3 |
Correct |
57 ms |
884 KB |
Output is correct |
4 |
Correct |
58 ms |
884 KB |
Output is correct |
5 |
Correct |
58 ms |
884 KB |
Output is correct |