Submission #1899

# Submission time Handle Problem Language Result Execution time Memory
1899 2013-07-19T08:43:33 Z gijun0102 개미 (GA4_ant) C++
48 / 100
62 ms 884 KB
#include<cstdio>
int min(int a,int b){return a<b?a:b;}

int main(){
	int a,b,c,t,i;
	scanf("%d",&t);
	for(i=0;i<t;i++){
		scanf("%d%d%d",&a,&b,&c);
		printf("%d\n",min(min((a+b)*(a+b)+c*c,(a+c)*(a+c)+b*b),(b+c)*(b+c)+a*a));
	}
}
# Verdict Execution time Memory Grader output
1 Correct 41 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 45 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 48 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 47 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 56 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 62 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -