# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
8573 |
2014-09-17T09:54:21 Z |
angel |
개미 (GA4_ant) |
C++ |
|
68 ms |
1088 KB |
#include <stdio.h>
#include <algorithm>
using namespace std;
int main()
{
int t;
long long a, b, c;
scanf("%d", &t);
while(t--) {
scanf("%lld%lld%lld", &a, &b, &c);
printf("%lld\n", min(min((a + b) * (a + b) + c * c, (a + c) * (a + c) + b * b), (b + c) * (b + c) + a * a));
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
2 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
52 ms |
1088 KB |
Output is correct |
3 |
Correct |
60 ms |
1088 KB |
Output is correct |
4 |
Correct |
56 ms |
1088 KB |
Output is correct |
5 |
Correct |
68 ms |
1088 KB |
Output is correct |