Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions atcoder/contest157/157A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
Problem Statement

Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.
At least how many sheets of paper does he need?

Constraints
N is an integer.
1 ≤ N ≤ 100

link - https://atcoder.jp/contests/abc157/tasks/abc157_a
*/

#include <bits/stdc++.h>
using namespace std;

int main()
{
int n;
cin >> n;
if (n % 2 == 0)
{
cout << n / 2;
}
else
{
cout << (n + 1) / 2;
}
}