// ConsoleApplication5.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include<cstdio> #include<algorithm> #include<cstdbool> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a; cin >> a ; int max = 0; int min = 0; if (a % 2 != 0) { cout << 0 << " " << 0 << endl; } else { max = a / 2; min = a / 4 + (a % 4) / 2; cout << min << " " << max << endl; } return 0; } |
Double click to view unformatted code.