Submission #1434

# Submission time Handle Problem Language Result Execution time Memory
1434 2013-07-04T13:33:00 Z gs13068 개미 (GA4_ant) C++
48 / 100
58 ms 884 KB
#include<cstdio>

int main()
{
	int tc,tcn;
	int a,b,c,t;
	scanf("%d",&tcn);
	for(tc=0;tc<tcn;tc++)
	{
		scanf("%d%d%d",&a,&b,&c);
		if(a>b)
		{
			t=a;
			a=b;
			b=t;
		}
		if(b>c)
		{
			t=b;
			b=c;
			c=t;
		}
		if(a>b)
		{
			t=a;
			a=b;
			b=t;
		}
		printf("%d\n",(a+b)*(a+b)+c*c);
	}
}
# Verdict Execution time Memory Grader output
1 Correct 52 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 58 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 53 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 52 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 58 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -