Submission #2266

#TimeUsernameProblemLanguageResultExecution timeMemory
2266zyslee개미 (GA4_ant)C++98
100 / 100
61 ms884 KiB
#include<stdio.h> int main() { long long int n, a, b, c, i; scanf("%lld", &n); for(i=1;i<=n;i++){ scanf("%lld %lld %lld", &a, &b, &c); if(a>=b && a>=c) printf("%lld\n", a*a+(b+c)*(b+c)); else if(b>=a && b>=c) printf("%lld\n", b*b+(a+c)*(a+c)); else if(c>=a && c>=b) printf("%lld\n", c*c+(a+b)*(a+b)); } 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...