問題一覧 > 通常問題

No.815 Are you a traveller ?

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 594
作問者 : Enjapma_kyopro / テスター : omochana2
お気に入りにしたユーザー ProblemId : 2947 / 自分の提出
問題文最終更新日: 2019-04-10 23:10:57
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 211 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。