Update solution for 달팽이는_올라가고_싶다 w/ id 13910239

Time: 68ms
MemUsage: 29200KB
This commit is contained in:
2024-08-29 16:23:50 +09:00
parent 8e6bde2aa0
commit 6fb1dd79c8

View File

@@ -0,0 +1,7 @@
string = input()
A, B, V = tuple(int(a) for a in string.split())
x = (V - A) / (A - B)
if x % 1 == 0:
print(int(x) + 1)
else:
print(int(x) + 2)