Submission #1900

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