Submission #2820

# Submission time Handle Problem Language Result Execution time Memory
2820 2013-07-31T13:21:08 Z mh5664 다각형 (GA5_polygon) C++
0 / 100
0 ms 1088 KB
#include <stdio.h>

int main ()
{
	long long int n, m;

	scanf ("%lld %lld", &n, &m);

	long long int sol = 0;
	if (n <= 1)
		sol++;
	--n;
	if (n % 2 == 1)
		--n;
	if (m % 2 == 1)
		--m;
	sol = sol + ((m / 2) + 1) * m / 2 - ((n / 2) + 1) * n / 2;
	printf ("%lld", sol);
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -