Submission #6800

#TimeUsernameProblemLanguageResultExecution timeMemory
6800qja0950개미 (GA4_ant)C++98
100 / 100
60 ms1088 KiB
#include <stdio.h> long long MIN(long long x, long long y) { if(x>y) return y; else return x; } int main() { int T; scanf("%d", &T); for(int i=1; i<=T; i++) { long long a, b, c; scanf("%lld %lld %lld", &a, &b, &c); printf("%lld\n", MIN((a+b)*(a+b)+c*c, MIN((b+c)*(b+c)+a*a, (c+a)*(c+a)+b*b))); } }
#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...