View Code of Problem 87

#include<stdio.h>
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
#include<map>
#include<vector>
#include<cstdbool>
using namespace std;

int main()
{
	int n;
	cin >> n;
	if (n % 2 != 0) {
		printf("0 0\n");
	}
	else {
		int min = n / 4 + (n % 4) / 2;
		int max = n / 2;
		printf("%d %d\n", min, max);
	}
	
	return 0;
}

Double click to view unformatted code.


Back to problem 87