View Code of Problem 87

#include<stdio.h>
int main()
{
	int a;
	int min,max;
	scanf("%d",&a);
	if(a%2==1)
		printf("0 0");
	else
	{	
		min=a/4+(a%4)/2;
		max=a/2;
		printf("%d %d",min,max);
	}	
	return 0;
}

Double click to view unformatted code.


Back to problem 87