View Code of Problem 87

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

Double click to view unformatted code.


Back to problem 87