Submission #2172

#TimeUsernameProblemLanguageResultExecution timeMemory
2172cki86201개미 (GA4_ant)C++98
100 / 100
57 ms884 KiB
#include<stdio.h> #include<algorithm> long long int a,b,c; int main() { int t;scanf("%d",&t); while(t--){ scanf("%lld%lld%lld",&a,&b,&c); long long int ans=0x7fffffffffffffffll; ans=std::min(ans,a*a+(b+c)*(b+c)); ans=std::min(ans,b*b+(a+c)*(a+c)); ans=std::min(ans,c*c+(a+b)*(a+b)); printf("%lld\n",ans); } 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...