View Code of Problem 87

#include<iostream>

using namespace std;

int main(void){
	int m;
	cin>>m;
	if(m%2==1){
		printf("0 0\n");
	}
	else{
		int max,min;
		max=m/2;
		if(m%4==0){
			min=m/4;
		}
		else{
			min=m/4+1;
		}
		cout<< min << ' ' << max << endl;
	}
}

Double click to view unformatted code.


Back to problem 87