View Code of Problem 87

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,n,m;
	scanf("%d",&a);
	if(a%2!=0)
	printf("0 0\n");
	else
	{
		if(a%4==0)
		{
			printf("%d %d\n",a/4,a/2);
		}
		else
		printf("%d %d\n",a/4+1,a/2);
	}
	return 0;
}
	

Double click to view unformatted code.


Back to problem 87