View Code of Problem 87

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

Double click to view unformatted code.


Back to problem 87