# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2351 |
2013-07-21T03:49:59 Z |
richkc2006 |
개미 (GA4_ant) |
C++ |
|
47 ms |
1376 KB |
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int 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", d*d);
else if(e<d && e<f) printf("%d", e*e);
else if(f<d && f<e) printf("%d", f*f);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
1372 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
31 ms |
1372 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
32 ms |
1372 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
40 ms |
1376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
47 ms |
1376 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
41 ms |
1372 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |