알고리즘/백준

백준-2869번(달팽이는 올라가고 싶다)-python3

nyeongha 2023. 11. 26. 01:12
import math
a,b,v=map(int,input().split())
if (v-a)<(a-b):
    print(int(math.ceil((v-a)/(a-b))+1))
else:
    print(int(mat
저작자표시 비영리 변경금지 (새창열림)