Submission #17437

#TimeUsernameProblemLanguageResultExecution timeMemory
17437atomzeno개미 (GA4_ant)C++98
100 / 100
70 ms1084 KiB
#include<stdio.h> #include<algorithm> using namespace std; int main(){ int n; scanf("%d",&n); while(n--){ long long int a[3],e; scanf("%lld%lld%lld",&a[0],&a[1],&a[2]); if(a[0]>a[1]){ e=a[0]; a[0]=a[1]; a[1]=e; }if(a[0]>a[2]){ e=a[1]; a[1]=a[2]; a[2]=e; }if(a[1]>a[2]){ e=a[1]; a[1]=a[2]; a[2]=e; } a[0]+=a[1]; printf("%lld\n",a[0]*a[0]+a[2]*a[2]); } }
#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...