View Code of Problem 87

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

Double click to view unformatted code.


Back to problem 87