# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2169 |
2013-07-20T06:48:52 Z |
cki86201 |
개미 (GA4_ant) |
C++ |
|
61 ms |
884 KB |
#include<stdio.h>
#include<algorithm>
int a,b,c;
int main()
{
int t;scanf("%d",&t);
while(t--){
scanf("%d%d%d",&a,&b,&c);
int s=std::max(a,std::max(b,c));
printf("%d\n",s*s+(a+b+c-s)*(a+b+c-s));
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
49 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
55 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
61 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |