# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7831 |
2014-08-19T10:54:27 Z |
gs13068 |
개미 (GA4_ant) |
C++ |
|
72 ms |
1088 KB |
#include<cstdio>
int main()
{
int tcn;
scanf("%d",&tcn);
while(tcn--)
{
long long a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
if(b>c)b^=c^=b^=c;
if(a>b)a^=b^=a^=b;
printf("%lld\n",a*a+(b+c)*(b+c));
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 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 |
Incorrect |
68 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
72 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
40 ms |
1088 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
1088 KB |
Output is correct |
2 |
Incorrect |
48 ms |
1088 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |