Submission #2151

#TimeUsernameProblemLanguageResultExecution timeMemory
2151jwvg0425개미 (GA4_ant)C++98
100 / 100
62 ms884 KiB
#include<stdio.h> long long int min(long long int a,long long int b){return a<b?a:b;} int main() { int t,i; long long int a,b,c,m; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%lld %lld %lld",&a,&b,&c); m=(a+b)*(a+b)+c*c; m=min(m,a*a+(b+c)*(b+c)); m=min(m,b*b+(a+c)*(a+c)); printf("%lld\n",m); } }
#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...