B. Simple学长买咖啡

    传统题 1000ms 128MiB

Simple学长买咖啡

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Problem Description

As you know,Simple buys coffee everyday,while he must program everyday ,so his time is very precious, then he invented a strange way of walking, one can walk 1, 2, 3, 4 or 5 unit of distance at once.It turned out that the Simple is located at point 0 and the shop is locatedat point x(x>0) of the coordinate line.Determine, what is the minimum number of steps he needs to make in order to get to the shop.

Input Format

The first T indicates there are T groups of date.

The first line of every group contains an integer x (1 ≤ x ≤ 1 000 000) — The coordinate of the shop.

Output Format

Print the minimum number of steps that Simple needs to make to get from point 0 to point x.
2
5
12
1
3

Source

2016周赛 六

2016级河南工大新生周赛(六)

未参加
状态
已结束
规则
XCPC
题目
7
开始于
2016-12-7 3:30
结束于
2016-12-7 6:00
持续时间
2.5 小时
主持人
参赛人数
293