Submission #16364

#TimeUsernameProblemLanguageResultExecution timeMemory
16364eaststar개미 (GA4_ant)C++14
100 / 100
86 ms1720 KiB
#include <bits/stdc++.h> using namespace std; long long a[3]; int main(){ int i,t; scanf("%d",&t); for(;t--;){ for(i=0;i<3;++i)scanf("%lld",a+i); sort(a,a+3); printf("%lld\n",(a[0]+a[1])*(a[0]+a[1])+a[2]*a[2]); } 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...