Submission #2514

#TimeUsernameProblemLanguageResultExecution timeMemory
2514kipa00개미 (GA4_ant)C++98
100 / 100
59 ms884 KiB
#include <cstdio> using namespace std; int T; int main() { long long int a, b, c; long long int d, e, f; long long int min; scanf("%d", &T); while (T--) { scanf("%lld %lld %lld", &a, &b, &c); d = a + b; e = b + c; f = c + a; d = c * c + d * d; e = a * a + e * e; f = b * b + f * f; min = (d < e) ? d : e; min = (min < f) ? min : f; printf("%lld\n", min); } 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...