Submission #2264

# Submission time Handle Problem Language Result Execution time Memory
2264 2013-07-21T00:39:18 Z zyslee 개미 (GA4_ant) C++
13 / 100
50 ms 884 KB
#include<stdio.h>
int main()
{
	long long int n, a, b, c, i;
	scanf("%lld", &n);
	for(i=1;i<=n;i++){
		scanf("%lld %lld %lld", &a, &b, &c);
		if(a>b && a>c) printf("%lld\n", a*a+(b+c)*(b+c));
		if(b>a && b>c) printf("%lld\n", b*b+(a+c)*(a+c));
		if(c>a && c>b) printf("%lld\n", c*c+(a+b)*(a+b));
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 44 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 47 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 48 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 31 ms 880 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 50 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 880 KB Output isn't correct
2 Halted 0 ms 0 KB -