Submission #2279

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