Logo
(追記) (追記ここまで)

34306번 - M-Climb Road 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB29828426795.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.)

제한

예제 입력 1

3
50

예제 출력 1

316

예제 입력 2

2
500

예제 출력 2

21

힌트

출처

School > CS@Mines > CS@Mines HSPC 2024 J번

  • 문제를 만든 사람: Ethan Richards, Julietta Rozin
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /