View Code of Problem 87

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

Double click to view unformatted code.


Back to problem 87