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

34380번 - Blaster's Dash 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB28526724393.822%

문제

After every touchdown that Mines scores at a football game, the Mines mascot Blaster the Burrow runs out on the field to the $n^{\text{th}}$ yard line, and back, escorted by members of the Blue Key honor society who also carry the Mines flag. Because Mines scores so many touchdowns, Blaster gets tired and runs at most to the 50ドル^{\text{th}}$ yard line (midfield).

To run to the $n^{\text{th}}$ yard line, Blaster runs 10ドル$ yards from the fence to the back of the endzone, then runs 10ドル$ yards through the endzone, and finally runs $n$ yards to reach the $n^{\text{th}}$ yard line. To complete his trip on the field, Blaster then runs straight back to the fence. Given that Blaster ran to the $n^{\text{th}}$ yard line after one particular touchdown scored by Mines, how far did he run in total?

입력

The first line of input contains two space-separated integers representing the score of the game. The score for the Colorado School of Mines football team, $M,ドル is first, followed by the score for their opponent, $V$. You are guaranteed that the score for Mines is greater than the score for their opponent ($M > V$).

The next line of input contains a single integer, 1ドル \leq n \leq 50,ドル representing the yard line that Blaster ran to.

The last line of input contains a single integer representing, $K,ドル the current temperature in Kelvin.

출력

Output a single line containing the total number of yards that Blaster ran after this particular touchdown.

제한

예제 입력 1

55 6
42
294

예제 출력 1

124

노트

출처

School > CS@Mines > CS@Mines HSPC 2022 > Beginner A번

School > CS@Mines > CS@Mines HSPC 2022 > Advanced A번

  • 문제를 만든 사람: Sumner Evans
(追記) (追記ここまで)

출처

대학교 대회

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

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