Submission #1900

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

int main(){
	long long a,b,c;
	int t,i;
	scanf("%d",&t);
	for(i=0;i<t;i++){
		scanf("%lld%lld%lld",&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 44 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 49 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 49 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 55 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 54 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 61 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -