Submission #8908

#TimeUsernameProblemLanguageResultExecution timeMemory
8908bbqglgl개미 (GA4_ant)C++98
100 / 100
60 ms1088 KiB
#include<stdio.h> int main() { int t; unsigned long long int a,b,c, out; scanf("%d",&t); while(t--) { scanf("%lld %lld %lld",&a,&b,&c); out=a; if(out<b) out=b; if(out<c) out=c; printf("%lld\n",a*a+b*b+c*c+(a*b*c/out)*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...