Submission #2163

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