시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 793 | 624 | 593 | 80.790% |
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 know how deep Soongsil University station is. Find the depth of the Soongsil University station.
Depth is the vertical distance from the exit to the platform.
line | {floor1 } |
{floor2 } |
1 | F1 | B1 |
2 | B1 | B2 |
3 | B2 | B5 |
4 | B5 | B6 |
[Table 1] Description of the given input
For every two adjacent floors ordered by depth, the information is given on a line as follows:
Stair
x
x
stairs from the {floor1
} floor, you will reach the {floor2
} floor.Es
x
x
steps from the {floor1
} floor, you will reach the {floor2
} floor.Print the answer in cm
. If the answer is 5096cm
, print 5096
.
1
escalator step is 21cm
, and the height of 1
stair is 17cm
.6425
x
is integer.Es 20 Stair 15 Stair 15 Stair 15
1185
Contest > BOJ User Contest > 가희와 함께 하는 코딩 테스트 > 가희와 함께 하는 5회 코딩테스트 A번