View Code of Problem 87

#include<iostream>
#include<string>
using namespace std;
int main(){
	int n;
	cin>>n;
	int min,max;
	max=n/2;
	if(n%4==0){
		min=n/4;
	}else{
		min=n/4+1;
	}
	cout<<min<<" "<<max<<endl;
	return 0;
} 

Double click to view unformatted code.


Back to problem 87