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