AT_abc483_a.Double-Sided Printing
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You are given a positive integer N.
You will print a document consisting of N pages on sheets of copy paper.
You will use double-sided printing, so one page can be printed on each of the front and back of a sheet.
Find the minimum number of sheets of copy paper needed to print all N pages.
给定一个正整数 N。
你需要将一份包含 N 页的文档打印在复印纸上。
你将使用双面打印,因此每张纸的正面和背面各可打印一页。
求打印全部 N 页所需的最少复印纸张数。
输入格式
The input is given from Standard Input in the following format:
N
输入从标准输入中按以下格式给出:
N
输出格式
Print the answer.
输出答案。
输入输出样例
输入#1
3
输出#1
2
输入#2
6
输出#2
3
输入#3
59
输出#3
30
说明/提示
Sample 1 Explanation:
By printing on both sides of one sheet of copy paper and on one side of another, you can print 3 pages using 2 sheets.
Constraints
- 1≤N≤100
- N is an integer.
样例 1 解释:
通过在一张复印纸上双面打印、在另一张复印纸上单面打印,你可以用 2 张纸打印出 3 页。
限制条件
- 1≤N≤100
- N 是一个整数。
输入解题思路,AI测评打分。不知道怎么写?