#include <iostream> using namespace std; int main() { int a; while (cin >> a) { // 注意 while 处理多个 case if (a % 2 != 0)cout << "0 0" << endl; else { cout << a / 4 + a % 4 / 2 << " " << a / 2 << endl; } } } // 64 位输出请用 printf("%lld")
#include <iostream> using namespace std; int main() { int a; while (cin >> a) { // 注意 while 处理多个 case if (a % 2 != 0)cout << "0 0" << endl; else { cout << a / 4 + a % 4 / 2 << " " << a / 2 << endl; } } } // 64 位输出请用 printf("%lld")