abc157_a - Duplex Printing
18 Dec 2020 — Tags: easy — URLYou need $\frac{(n + 1)}{2}$ pages.
Time complexity: $O(1)$
Memory complexity: $O(1)$
Click to show code.
using namespace std;
int main(void)
{
ios::sync_with_stdio(false), cin.tie(NULL);
int n;
cin >> n;
cout << (n + 1) / 2 << endl;
return 0;
}