No.815 Are you a traveller ?
タグ : / 解いたユーザー数 594
作問者 :
Enjapma_kyopro
/ テスター :
omochana2
Problem Statement
Lost on your journey and with nowhere left to go, you visited a small country you saw nearby.
You learned that the name of the country is the Kingdom of Enjapma.
Including you, $N$ travellers have come to this country. All of the lodging rooms for travellers are rooms for $2$ people.
How many rooms are needed to accommodate all of the travellers?
Input
$N$
$1 \le N \le 20$
$N$ is an integer.
Output
Output the required number of rooms.
Print a newline at the end.
Sample
Sample 1
Input
6
Output
3
To accommodate $6$ people, $3$ rooms for $2$ people are needed.
Sample 2
Input
9
Output
5
To accommodate $9$ people, $5$ rooms are needed.
Note that there will be $1$ room with $1$ person.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。