Submission #2266

# Submission time Handle Problem Language Result Execution time Memory
2266 2013-07-21T00:43:49 Z zyslee 개미 (GA4_ant) C++
100 / 100
61 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));
		else if(b>=a && b>=c) printf("%lld\n", b*b+(a+c)*(a+c));
		else if(c>=a && c>=b) printf("%lld\n", c*c+(a+b)*(a+b));
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 45 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 49 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 51 ms 884 KB Output is correct
2 Correct 50 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 53 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 884 KB Output is correct
2 Correct 51 ms 884 KB Output is correct
3 Correct 56 ms 884 KB Output is correct
4 Correct 60 ms 884 KB Output is correct
5 Correct 61 ms 884 KB Output is correct