AtCoder Beginner Contest 157 - Duplex Printing

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 \leq N \leq 100

-----Input-----
Input is given from Standard Input in the following format:
N

-----Output-----
Print the answer.

-----Sample Input-----
5

-----Sample Output-----
3

By printing the 1-st, 2-nd pages on the 1-st sheet, 3-rd and 4-th pages on the 2-nd sheet, and 5-th page on the 3-rd sheet, we can print all the data on 3 sheets of paper.

Source: atcoder | Difficulty: EASY


Solutions:
n = int(input())
print((n + 1) // 2)


N = int(input())
print(int(N / 2 + 0.5))


N = int(input())
S = -(-N // 2)
print(S)


import math
n = int(input())
print(math.ceil(n / 2))


n = int(input())
print(-int(-n // 2))


print(int(int(input()) / 2 + 0.6))


N = input()
print(int((int(N) + 1) / 2))


N = input()
print(int(N) // 2 + int(N) % 2)


N = int(input())
if N % 2 == 0:
	print(N // 2)
else:
	print((N + 1) // 2)


from math import ceil
n = int(input())
ans = ceil(n / 2)
print(ans)


a = int(input())
print(int(a / 2 + a % 2))


i = int(input())
print(i // 2 + i % 2)


print(-(-int(input()) // 2))


d = int(input())
if d % 2 == 0:
	print(d // 2)
else:
	print(d // 2 + 1)


n = int(input())
print(n // 2 + int(n % 2 != 0))


N = int(input())
print(str(N // 2 + N % 2))


print(int((int(input()) + 1) / 2))


def main():
	n = int(input())
	cnt = 0
	ans = 0
	while cnt < n:
		cnt += 2
		ans += 1
	return ans

def __starting_point():
	print(main())
__starting_point()


N = int(input())
a = N // 2
if N % 2 != 0:
	a += 1
print(a)


n = int(input())
if n % 2 == 1:
	print(n // 2 + 1)
else:
	print(n // 2)


x = int(input())
print((x + 1) // 2)


N = int(input())
A = N // 2 + N % 2
print(A)


x = int(input())
print(x // 2 + x % 2)


n = int(input())
s = int(n / 2 + 0.9)
print(s)


n = int(input())
pages = n // 2 + n % 2
print(pages)


v = int(input())
print(v // 2 + v % 2)


print(eval('0--' + input() + '//2'))


print(sum(divmod(int(input()), 2)))


n = int(input().strip())
print(-(-n // 2))


a = int(input())
b = a // 2 + a % 2
print(b)


ans = (int(input()) - 1) // 2 + 1
print(ans)


n = int(input())
a = int(-(-n // 2))
print(a)


n = int(input())
ans = -(-n // 2)
print(ans)


n = int(input())
s = n % 2
l = n // 2
if s == 1:
	print(l + 1)
else:
	print(l)


n = int(input())
ans = n // 2
if n % 2 == 0:
	print(ans)
else:
	print(ans + 1)


n = int(input())
div = -(-n // 2)
print(div)


N = int(input())
print(round(N / 2 + 0.01))


import math as mt
n = int(input())
print(mt.ceil(n / 2))


a = int(input())
print((a + 1) // 2)


a = int(input())
s = -(-a // 2)
print(s)


N = int(input())
import math
print(math.ceil(N / 2))


n = int(input())
a = n / 2
if n % 2 == 0:
	print(int(a))
else:
	print(int(a) + 1)


m = int(input())
print(m // 2 + m % 2)


N = int(input())
M = N / 2 + N % 2
print(int(M))


S = int(input())
print(S % 2 + S // 2)


N = int(input())
print(abs(-N // 2))


a = int(input())
print(a // 2 + (a % 2 != 0))


N = int(input())
print(N + 1 >> 1)


n = int(input())
gou = n // 2
gou += n % 2
print(gou)


n = int(input())
print('%d' % -(-n // 2))


n = int(input())
m = -(-n // 2)
print(m)


print(0 - -int(input()) // 2)


val = int(input())
print((val + 1) // 2)


print(round(float(input()) / 2 + 0.1))


p = int(input())
print(p // 2 + p % 2)


N = int(input())
a = N // 2 + N % 2
print(a)


N = int(input())
print(int(N / 2 + 0.9))


N = int(input())
Ans = N // 2 + N % 2
print(Ans)


S = int(input())
p = -(-S // 2)
print(p)


A = int(input())
print(A // 2 + A % 2)


def main():
	n = int(input())
	if n % 2 == 0:
		print(int(n / 2))
	else:
		print(int(n / 2) + 1)

def __starting_point():
	main()
__starting_point()


print(abs(-int(input()) // 2))


n = int(input())
import math
if n % 2 == 0:
	print(math.floor(n / 2))
else:
	n = n + 1
	print(math.floor(n / 2))


x = int(input())
if x % 2 == 0:
	print(int(x / 2))
else:
	print(int(x / 2 + 0.5))


import os, sys, re, math
N = int(input())
print((N + 1) // 2)


n = int(input())
amari = n % 2
if amari > 0:
	print(n // 2 + 1)
else:
	print(n // 2)


import math
num = int(input())
print(math.ceil(num / 2))


i = int(input())
i = int((i + 1) / 2)
print(i)


print(int(int(input().rstrip()) / 2 + 0.9))


p = int(input())
print((p + 1) // 2)


def resolve():
	n = int(input())
	print(n // 2 + (n % 2 != 0))
resolve()


s = int(input())
print(s // 2 + s % 2)


a = int(input())
print(str(a % 2 + int(a / 2)))


n = int(input())
if n % 2 == 0:
	print(int(n / 2))
if not n % 2 == 0:
	print(int(n / 2 + 1))


n = int(input())
p = n // 2 + n % 2
print(p)


N = int(input())
page = N // 2 + N % 2
print(page)


print(-(-int(input().strip()) // 2))


N = int(input())
ans = N // 2 + N % 2
print(ans)


page = int(input())
print(-(-page // 2))


import math
x = int(input())
print(math.ceil(x / 2))


import math
a = int(input())
print(math.floor((a + 1) / 2))