Submission #1916

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