# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
16783 |
2015-09-29T04:06:28 Z |
kdh9949 |
개미 (GA4_ant) |
C++ |
|
51 ms |
1084 KB |
#include <stdio.h>
#include <algorithm>
using namespace std;
int t;
long long a,b,c;
int main()
{
scanf("%d",&t);
for(int i=0;i<t;i++){
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)));
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
1084 KB |
Output is correct |
2 |
Correct |
44 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
49 ms |
1084 KB |
Output is correct |
2 |
Correct |
48 ms |
1084 KB |
Output is correct |
3 |
Correct |
44 ms |
1084 KB |
Output is correct |
4 |
Correct |
0 ms |
1084 KB |
Output is correct |
5 |
Correct |
47 ms |
1084 KB |
Output is correct |