# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2847 |
2013-07-31T15:45:25 Z |
ansol4328 |
개미 (GA4_ant) |
C++ |
|
60 ms |
1088 KB |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int n, i;
long long a, b, c;
scanf("%d",&n);
for(i=1 ; i<=n ; i++)
{
scanf("%lld %lld %lld",&a,&b,&c);
if(a>b) a^=b^=a^=b;
if(b>c) b^=c^=b^=c;
if(a>c) a^=c^=a^=c;
printf("%lld\n",(a+b)*(a+b)+c*c);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
56 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
56 ms |
1088 KB |
Output is correct |
3 |
Correct |
56 ms |
1088 KB |
Output is correct |
4 |
Correct |
40 ms |
1088 KB |
Output is correct |
5 |
Correct |
60 ms |
1088 KB |
Output is correct |