Submission #8520

#TimeUsernameProblemLanguageResultExecution timeMemory
8520eric4266개미 (GA4_ant)C++98
100 / 100
56 ms1088 KiB
#include <stdio.h> unsigned long long i,t,x,y,z;unsigned long long ant(unsigned long long x,unsigned long long y,unsigned long long z){scanf("%llu%llu%llu",&x,&y,&z);if(x<=z&&y<=z)return(x+y)*(x+y)+z*z;else if(x<=y&&z<=y)return(x+z)*(x+z)+y*y;else return(y+z)*(y+z)+x*x;}int main(){scanf("%llu",&t);for(i=1;i<=t;i++){printf("%llu\n",ant(x,y,z));}}
#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...