Submission #2464

#TimeUsernameProblemLanguageResultExecution timeMemory
2464makesource개미 (GA4_ant)C++98
100 / 100
186 ms884 KiB
#include <stdio.h> #define MIN(a,b) ((a)<(b)?(a):(b)) int main() { int T; scanf("%d",&T); while(T--) { double a,b,c,d1,d2,d3; scanf("%lf%lf%lf",&a,&b,&c); d1 = (a+b)*(a+b) + c*c; d2 = (a+c)*(a+c) + b*b; d3 = (b+c)*(b+c) + a*a; printf("%.0lf\n",MIN(MIN(d1,d2),d3)); } 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...