View Code of Problem 87

#include<stdio.h>
#include<stdlib.h>

int main(){
	int N;
	scanf("%d",&N);
	if(N%2!=0) printf("0 0");
	else {
		if(N%2==0&&N%4==0)
		printf("%d %d",N/4,N/2);
		else
		printf("%d %d",N/4+1,N/2);	
	}
}

Double click to view unformatted code.


Back to problem 87