# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
4974 |
2014-01-23T16:36:28 Z |
lingxiang |
개미 (GA4_ant) |
C++ |
|
60 ms |
1088 KB |
#include<stdio.h>
int main(){
long long int a=0,b=0,c=0;
int T=0;
scanf("%d",&T);
for(int i=0;i<T;i++){
scanf("%lld %lld %lld",&a,&b,&c);
if(a>b) a^=b^=a^=b;
if(b>c) b^=c^=b^=c;
printf("%lld\n",(a+b)*(a+b)+c*c);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
52 ms |
1088 KB |
Output is correct |
3 |
Correct |
60 ms |
1088 KB |
Output is correct |
4 |
Correct |
56 ms |
1088 KB |
Output is correct |
5 |
Correct |
40 ms |
1088 KB |
Output is correct |