View Code of Problem 87

#include<stdio.h>
int main()
{
	int  a,n,i,j,sum=0,ten;
	scanf("%d",&n);
	int max,min;
	max=n/2+(n%2)/4;
	min=n/4+(n%4)/2;
	if(n%2!=0)
	printf("0 0\n");
	else
	printf("%d %d\n",min,max);
}

Double click to view unformatted code.


Back to problem 87