Submission #2492

#TimeUsernameProblemLanguageResultExecution timeMemory
2492tncks0121개미 (GA4_ant)C++98
100 / 100
68 ms884 KiB
#include<stdio.h> long long int a,b,c; long long int save; int t; int main(){ int i; scanf("%d",&t); for(i=0;i<t;i++){ scanf("%lld %lld %lld",&a,&b,&c); if(a>=b&&a>=c){ save=b*2; save=save*c; }else if(b>=a&&b>=c){ save=a*2; save=save*c; }else{ save=a*2; save=save*b; } a=a*a; b=b*b; c=c*c; save=save+a+b+c; printf("%lld\n",save); } 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...