Submission #5323

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