# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2580 |
2013-07-27T03:39:11 Z |
qkrqudrb07 |
개미 (GA4_ant) |
C++ |
|
36 ms |
1088 KB |
#include<stdio.h>
int main()
{
int n,i,a,b,c,mm=999999,gil1,gil2,gil3;
scanf("%d",&n);
for(i=1; i<=n; i++){
scanf("%d %d %d",&a,&b,&c);
gil1=(b+c)*(b+c)+a*a;
gil2=(a+c)*(a+c)+b*b;
gil3=(a+b)*(a+b)+c*c;
if(gil1<mm) mm=gil1;
if(gil2<mm) mm=gil2;
if(gil3<mm) mm=gil3;
}
printf("%d",mm);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
20 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
24 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
36 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
32 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
32 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
24 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |