arr = input().split()
M = int(arr[0])
N = int(arr[2])
X = 1
elevator = 1
start_n = 0
while start_n != N:
if X < M:
X += 1
start_n += 1
else:
elevator += 1
X = 1
print(elevator)
How can I make it faster?
python
It looks like NYPC question number three If so, please drop the article.
© 2024 OneMinuteCode. All rights reserved.