Submission #2288

#TimeUsernameProblemLanguageResultExecution timeMemory
2288pull601개미 (GA4_ant)C11
100 / 100
59 ms784 KiB
#include <stdio.h> #include <stdlib.h> int main() { int n,i; long long a,b,c,k,t,kk; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%lld %lld %lld",&a,&b,&c); k=(a+b)*(a+b)+c*c; if(k>(a+c)*(a+c)+b*b) k=(a+c)*(a+c)+b*b; if(k>(b+c)*(b+c)+a*a) k=(b+c)*(b+c)+a*a; printf("%lld\n",k); } 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...