Submission #2278

#TimeUsernameProblemLanguageResultExecution timeMemory
22786590f1개미 (GA4_ant)C++98
100 / 100
60 ms884 KiB
#include<stdio.h> int main() { int n,i; long long int k,a,b,c; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%lld %lld %lld",&a,&b,&c); k=(a+b)*(a+b)+(c*c); if((a+c)*(a+c)+(b*b)<k)k=(a+c)*(a+c)+(b*b); if((b+c)*(b+c)+(a*a)<k)k=(b+c)*(b+c)+(a*a); printf("%lld\n",k); } 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...