View Code of Problem 87

#include <stdio.h>

int main()
{
	int a,min,max;
	scanf("%d",&a);
	if(a%2 != 0)
	{
		printf("0 0\n");
	}else
	{
		min=a/4+(a%4)/2;
		max=a/2;
		printf("%d %d\n",min,max);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 87