#P1238. Simple学长买咖啡
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
Source
2016周赛 六相关
在下列比赛中: