반응형
2869번: 달팽이는 올라가고 싶다
첫째 줄에 세 정수 A, B, V가 공백으로 구분되어서 주어진다. (1 ≤ B < A ≤ V ≤ 1,000,000,000)
www.acmicpc.net
# @Author YoungMinKim
# baekjoon
import sys
A,B,V = map(int,sys.stdin.readline().split())
if (V-A) % (A-B) == 0:
result = (V-A) / (A-B) + 1
else:
result = (V-A) / (A-B) + 2
print(int(result))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 11279 (0) | 2020.10.04 |
---|---|
baekjoon - python - 1002 (0) | 2020.10.04 |
baekjoon - python - 2161 (0) | 2020.09.22 |
baekjoon - python - 1085 (0) | 2020.09.21 |
baekjoon - python - 18258 (0) | 2020.09.20 |
댓글