개발자 뺚
[BAEKJOON ONLINE JUDGE] 27389번 : Metronome 본문
시간 제한 : 1 초(추가 시간 없음)
메모리 제한 : 1024 MB
문제
A Metronome is a mechanical device used by musicians for keeping time. It is a very clever device, based on a spring, an inverted pendulum, and an escapement gear. Milo is learning to play the glockenspiel, and has purchased a metronome to help him keep time. Milo has noticed that for every complete turn (one revolution) of the key, the metronome will give four ticks. Milo wants the metronome to stop at the end of each song that he tries to play.
For a given song, how many revolutions must he wind the key?
입력
The single line of input contains a single integer (1 ≤ n ≤ 10^5), which is the length of the song in ticks.
출력
Output a single real number, which is the number of revolutions Milo must turn the metronome's key so that it stops precisely at the end of the song. This number must be accurate to two decimal places.
print(int(input()) / 4)
'Solution > Python' 카테고리의 다른 글
[BAEKJOON ONLINE JUDGE] 28927번 : Киноманы (0) | 2024.06.29 |
---|---|
[BAEKJOON ONLINE JUDGE] 28938번 : Конвейер (0) | 2024.06.25 |
[BAEKJOON ONLINE JUDGE] 27331번 : 2 桁の整数 (Two-digit Integer) (0) | 2024.06.21 |
[BAEKJOON ONLINE JUDGE] 27328번 : 三方比較 (Three-Way Comparison) (0) | 2024.06.19 |
[BAEKJOON ONLINE JUDGE] 27327번 : 時間 (Hour) (0) | 2024.06.17 |