#include<iostream> #include<cstring> #include<string> #include<algorithm> #include<vector> #include<math.h> using namespace std; int main() { int leg; cin >> leg; if (leg % 2 == 1) { cout << 0 << " " << 0 << endl; return 0; } if (leg % 4 == 0) { cout << leg / 4 << " "; } else { cout << leg / 4 + 1 << " "; } cout << leg / 2 << endl; return 0; } |
Double click to view unformatted code.