Advertisement
STANAANDREY

bete (18)

Dec 28th, 2021
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. signed main() {
  5.     int n;
  6.     cin >> n;
  7.     if (n & 1) {
  8.         n++;
  9.     }
  10.     cout << (n >> 1) << endl;
  11.     return 0;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement