제출 #2406

#제출 시각아이디문제언어결과실행 시간메모리
2406hana5505개미 (GA4_ant)C++98
48 / 100
60 ms884 KiB
#include<stdio.h> int main() { int t,i,a,b,c,mn; scanf("%d",&t); for(i=1;i<=t;i++){ scanf("%d %d %d",&a,&b,&c); mn=a*a+(b+c)*(b+c); if(mn>b*b+(a+c)*(a+c)) mn=b*b+(a+c)*(a+c); if(mn>c*c+(a+b)*(a+b)) mn=c*c+(a+b)*(a+b); printf("%d\n",mn); } }
#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...