Update solution for 달팽이는_올라가고_싶다 w/ id 13910239
Time: 68ms MemUsage: 29200KB
This commit is contained in:
7
baekjoon/달팽이는_올라가고_싶다/solution_13910239.py
Normal file
7
baekjoon/달팽이는_올라가고_싶다/solution_13910239.py
Normal 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)
|
||||
Reference in New Issue
Block a user