Submission #2372

#TimeUsernameProblemLanguageResultExecution timeMemory
2372swh0329개미 (GA4_ant)C++98
0 / 100
56 ms884 KiB
#include <stdio.h> #define Min(x,y) x<y?x:y using namespace std; int main() { int t; int a, b, c, m; scanf("%d", &t); while(t>0) { t--; m=999999; scanf("%d %d %d", &a, &b, &c); m=Min(m, (a+b)*(a+b)+(c*c)); m=Min(m, (a+c)*(a+c)+(b*b)); m=Min(m, (a*a)+(b+c)*(b+c)); m+=c; printf("%d\n", m); } 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...