Submission #1437

# Submission time Handle Problem Language Result Execution time Memory
1437 2013-07-04T13:35:23 Z gs13068 개미 (GA4_ant) C++
46 / 100
68 ms 884 KB
#include<cstdio>

int main()
{
	int tc,tcn;
	long long a,b,c,t;
	scanf("%d",&tcn);
	for(tc=0;tc<tcn;tc++)
	{
		scanf("%lld%lld%lld",&a,&b,&c);
		if(b>c)
		{
			t=b;
			b=c;
			c=t;
		}
		if(a>b)
		{
			t=a;
			a=b;
			b=t;
		}
		printf("%lld\n",(a+b)*(a+b)+c*c);
	}
}
# Verdict Execution time Memory Grader output
1 Correct 43 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 60 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 54 ms 884 KB Output is correct
2 Correct 48 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 55 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 57 ms 884 KB Output is correct
2 Correct 68 ms 884 KB Output is correct
3 Correct 63 ms 884 KB Output is correct
4 Incorrect 61 ms 884 KB Output isn't correct
5 Halted 0 ms 0 KB -