Submission #2168

#TimeUsernameProblemLanguageResultExecution timeMemory
2168cki86201개미 (GA4_ant)C++98
0 / 100
0 ms876 KiB
#include<stdio.h> #include<algorithm> int a,b,c; int main() { freopen("input.txt","r",stdin); int t;scanf("%d",&t); while(t--){ scanf("%d%d%d",&a,&b,&c); int s=std::max(a,std::max(b,c)); printf("%d\n",s*s+(a+b+c-s)*(a+b+c-s)); } 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...