Skip to content

Instantly share code, notes, and snippets.

@MohamedTaha98
Created July 26, 2017 19:43
Show Gist options
  • Save MohamedTaha98/088e21174cb4038a6ac6e790e8b65a24 to your computer and use it in GitHub Desktop.
Save MohamedTaha98/088e21174cb4038a6ac6e790e8b65a24 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main () {
long n, ans;
cin >> n;
ans = (n + 1) / 2;
cout << ans;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment