| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 298 | 284 | 267 | 95.018% |
Every year, new Colorado School of Mines students climb to the top of Lookout Mountain to place a rock from their hometown onto a structure of rocks in the shape of an M. For this M-Climb, students walk up the road leading up to the M while clubs and organizations line the side of the road with parked cars, cheering the students on and spraying lots of water on them.
The upperclassmen have conspired to have a water gun placed exactly every $N$ feet, with the first being $N$ feet from the beginning of the road. The M-Climb is $W$ miles (one mile is 5280ドル$ feet), and you will be squirted every $N$ feet, including at the $W^{\text{th}}$ mile marker (if there is a water gun there). How many times will you get squirted?
The input consists of two lines:
The first line contains a single integer 1ドル \leq W \leq 10,000円$ representing the length of the road up to the M in miles.
The second line contains a single integer 1ドル \leq N \leq W$ representing the number of feet between each Mines student with a water gun.
An integer representing how many times you will get squirted with a water gun. (Remember that there is no water gun at the 0ドル^{\text{th}}$ mile marker.)
3 50
316
2 500
21
School > CS@Mines > CS@Mines HSPC 2024 J번