# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2374 |
2013-07-21T04:24:43 Z |
richkc2006 |
개미 (GA4_ant) |
C++ |
|
588 ms |
1376 KB |
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
long long n,a,b,c,i,d,e,f;
scanf("%d", &n);
for(i=1; i<=n; i++){
scanf("%d %d %d", &a,&b,&c);
d=(a+b)*(a+b)+c*c;
e=(a+c)*(a+c)+b*b;
f=(b+c)*(b+c)+a*a;
if(d<=e && d<=f) printf("%d\n", d);
else if(e<=e && e<=f) printf("%d\n", e);
else if(f<=e && f<=f) printf("%d\n", f);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
580 ms |
1376 KB |
Program hung waiting for input |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
575 ms |
1376 KB |
Program hung waiting for input |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
559 ms |
1376 KB |
Program hung waiting for input |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
579 ms |
1376 KB |
Program hung waiting for input |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
547 ms |
1376 KB |
Program hung waiting for input |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
588 ms |
1376 KB |
Program hung waiting for input |
2 |
Halted |
0 ms |
0 KB |
- |