Submission #2572

#TimeUsernameProblemLanguageResultExecution timeMemory
2572richkc2006개미 (GA4_ant)C++98
100 / 100
60 ms1672 KiB
#include<stdio.h> #include<iostream> using namespace std; int main() { long long int n,a,b,c,i,d,e,f; scanf("%d", &n); for(i=1; i<=n; i++){ scanf("%lld %lld %lld", &a,&b,&c); d=(a+b)*(a+b)+c*c; e=(a+c)*(a+c)+b*b; f=(b+c)*(b+c)+a*a; if(d<=e && d<=f) printf("%lld\n", d); else if(e<=e && e<=f) printf("%lld\n", e); else if(f<=e && f<=f) printf("%lld\n", f); } 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...