Submission #7061

#TimeUsernameProblemLanguageResultExecution timeMemory
7061gs14004개미 (GA4_ant)C++98
100 / 100
60 ms1088 KiB
#include <cstdio> #include <algorithm> using namespace std; long long a,b,c; long long v1,v2,v3; int main(){ int tc; scanf("%d",&tc); for (int i=0; i<tc; i++) { scanf("%lld %lld %lld",&a,&b,&c); v1 = (a+b)*(a+b)+c*c; v2 = (a+c)*(a+c)+b*b; v3 = (b+c)*(b+c)+a*a; printf("%lld\n",min(v1,min(v2,v3))); } }
#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...