# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2489 |
2013-07-22T13:15:57 Z |
jihoon |
개미 (GA4_ant) |
C++ |
|
69 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 |
41 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
53 ms |
884 KB |
Output is correct |
2 |
Correct |
51 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
57 ms |
884 KB |
Output is correct |
2 |
Correct |
69 ms |
884 KB |
Output is correct |
3 |
Correct |
62 ms |
884 KB |
Output is correct |
4 |
Correct |
56 ms |
884 KB |
Output is correct |
5 |
Correct |
61 ms |
884 KB |
Output is correct |