Submission #2407

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