Submission #5630

#TimeUsernameProblemLanguageResultExecution timeMemory
5630gs13073개미 (GA4_ant)C++98
100 / 100
60 ms1088 KiB
#include<stdio.h> long long min(long long x,long long y){return x>y?y:x;} int main() { int T; scanf("%d",&T); long long a,b,c; while(T--){ scanf("%lld %lld %lld",&a,&b,&c); long long l=(a+b)*(a+b)+c*c; long long ll=a*a+(b+c)*(b+c); long long lll=(a+c)*(a+c)+b*b; printf("%lld\n",min(min(l,ll),lll)); } 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...