# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
8906 |
2014-09-24T05:27:10 Z |
bbqglgl |
개미 (GA4_ant) |
C++ |
|
56 ms |
1088 KB |
#include<stdio.h>
int main()
{
int t;
long long int a,b,c, out;
scanf("%d",&t);
while(t--)
{
scanf("%lld %lld %lld",&a,&b,&c);
out=a*a+b*b+c*c;
if(a<c)
out+=(a*b)*2;
else
out+=(b*c)*2;
printf("%lld\n",out);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 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 |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
48 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
52 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
1088 KB |
Output is correct |
2 |
Correct |
52 ms |
1088 KB |
Output is correct |
3 |
Incorrect |
56 ms |
1088 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |