728x90
풀이
가희가 승강장 까지 내려가기 위한 수단(path)과 높이(height)를 제한에서 주어진 단위로 변환하여서 계산하면 된다.
계단이면 17cm, 에스컬레이터면 21cm이다.
주어진 모든 입력에 대해 단위를 곱하고, 총합을 출력하면 된다.
소스코드
출처
27880번: Gahui and Soongsil University station
Soongsil University Station is famous as the deepest station on Seoul Subway Line 7. This station is so deep that the platform is on the B6. Gahui was surprised that she did not reach the platform after more than five minutes from the exit. Gahui wants to
www.acmicpc.net
728x90
'PS > Baekjoon Online Judge' 카테고리의 다른 글
[백준 27239] Шахматная доска [Python] (0) | 2023.04.05 |
---|---|
[백준 27245] Комната [Python] (0) | 2023.04.04 |
[백준 1697] 숨바꼭질 [Python] (2) | 2022.06.04 |
[백준 1012] 유기농 배추 [Python] (0) | 2022.06.04 |
[백준 11050] 이항 계수 1 [C] (0) | 2022.04.03 |