Submission #1583

#TimeUsernameProblemLanguageResultExecution timeMemory
1583tncks0121개미 (GA4_ant)C++98
100 / 100
74 ms884 KiB
#include<cstdio> int main() { int tc,tcn; long long a,b,c,t; scanf("%d",&tcn); for(tc=0;tc<tcn;tc++) { scanf("%lld%lld%lld",&a,&b,&c); if(a>b) { t=a; a=b; b=t; } if(b>c) { t=b; b=c; c=t; } if(a>b) { t=a; a=b; b=t; } printf("%lld\n",(a+b)*(a+b)+c*c); } }
#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...