Submission #3023

#TimeUsernameProblemLanguageResultExecution timeMemory
3023movie_jo개미 (GA4_ant)C11
100 / 100
60 ms1088 KiB
#include<stdio.h> #define min(x,y) (x<y?x:y) int main() { int T; long long a, b, c, d, e, f; scanf("%d", &T); while(T--) { scanf("%lld %lld %lld", &a, &b, &c); d = (b + c)*(b + c) + a*a; e = (a + c)*(a + c) + b*b; f = (a + b)*(a + b) + c*c; printf("%lld\n", min(d,min(e,f))); } 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...