Submission #2586

#TimeUsernameProblemLanguageResultExecution timeMemory
2586qkrqudrb07개미 (GA4_ant)C++98
22 / 100
52 ms1088 KiB
#include<stdio.h> int main() { long long int n,i,a,b,c,mm=2000000000,gil1,gil2,gil3; scanf("%lld",&n); for(i=1; i<=n; i++){ scanf("%lld %lld %lld",&a,&b,&c); gil1=(b+c)*(b+c)+a*a; gil2=(a+c)*(a+c)+b*b; gil3=(a+b)*(a+b)+c*c; mm=200000000; if(gil1<mm) mm=gil1; if(gil2<mm) mm=gil2; if(gil3<mm) mm=gil3; printf("%lld\n",mm); } 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...