# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1438 |
2013-07-04T13:35:40 Z |
gs13068 |
개미 (GA4_ant) |
C++ |
|
69 ms |
884 KB |
#include<cstdio>
int main()
{
int tc,tcn;
long long a,b,c,t;
scanf("%d",&tcn);
for(tc=0;tc<tcn;tc++)
{
scanf("%lld%lld%lld",&a,&b,&c);
if(a>b)
{
t=a;
a=b;
b=t;
}
if(b>c)
{
t=b;
b=c;
c=t;
}
printf("%lld\n",(a+b)*(a+b)+c*c);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 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 |
49 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
65 ms |
884 KB |
Output is correct |
2 |
Correct |
50 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
66 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
69 ms |
884 KB |
Output is correct |
2 |
Correct |
59 ms |
884 KB |
Output is correct |
3 |
Correct |
59 ms |
884 KB |
Output is correct |
4 |
Correct |
55 ms |
884 KB |
Output is correct |
5 |
Correct |
55 ms |
884 KB |
Output is correct |