Submission #1901

#TimeUsernameProblemLanguageResultExecution timeMemory
1901gijun0102개미 (GA4_ant)C++98
100 / 100
60 ms884 KiB
#include<cstdio> long long min(long long a,long long 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("%lld\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...