Submission #8573

#TimeUsernameProblemLanguageResultExecution timeMemory
8573angel개미 (GA4_ant)C++98
100 / 100
68 ms1088 KiB
#include <stdio.h> #include <algorithm> using namespace std; 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(min((a + b) * (a + b) + c * c, (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...