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
121
3