View Code of Problem 87

#include<iostream>
using namespace std;
int main(void){
	int a;
	cin>>a;
	if(a%2==0){
		if(a%4==0)
			cout<<a/4<<" ";
		else{
				int m=a%4;
				cout<<a/4+m/2<<" ";
		}
		cout<<a/2;
	}else
		cout<<"0 0";
} 

Double click to view unformatted code.


Back to problem 87