# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
17643 |
2016-01-06T08:53:14 Z |
Namnamseo |
개미 (GA4_ant) |
C++14 |
|
59 ms |
1084 KB |
#include <cstdio>
typedef long long ll;
ll min(ll a,ll b){ if(!a && !b) return 1LL<<60; if(!a) return b; if(!b) return a; return a>b?b:a;}
ll min(ll a,ll b,ll c){ if(a+b+c==0) return 0; return min(min(a,b),c);}
int main(){
int tc;
scanf("%d",&tc);
int a,b,c;
for(;tc--;){
scanf("%d%d%d",&a,&b,&c);
printf("%lld\n",1ll*a*a+1ll*b*b+1ll*c*c+min(2ll*a*b,2ll*b*c,2ll*c*a));
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
36 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
59 ms |
1084 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1084 KB |
Output is correct |
2 |
Correct |
48 ms |
1084 KB |
Output is correct |
3 |
Correct |
46 ms |
1084 KB |
Output is correct |
4 |
Correct |
56 ms |
1084 KB |
Output is correct |
5 |
Correct |
54 ms |
1084 KB |
Output is correct |