Submission #2235

#TimeUsernameProblemLanguageResultExecution timeMemory
2235kriii개미 (GA4_ant)C++98
100 / 100
58 ms884 KiB
#include <stdio.h> long long min(long long a, long long b){return a < b ? a : b;} int main() { int T; long long a,b,c; scanf ("%d",&T); while (T--){ scanf ("%lld %lld %lld",&a,&b,&c); printf ("%lld\n",min((a+b)*(a+b)+c*c,min((a+c)*(a+c)+b*b,(b+c)*(b+c)+a*a))); } 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...