Submission #17641

#TimeUsernameProblemLanguageResultExecution timeMemory
17641Namnamseo개미 (GA4_ant)C++14
54 / 100
73 ms1084 KiB
#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){ 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...