Advertisement
Maxim91208

Untitled

Dec 7th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. a,b,c=map(int,input().split())
  2. e=0
  3. if a>=b:
  4.     print(1)
  5. elif a<c:
  6.     print('NO')
  7. else:
  8.     while b>0:
  9.         b-=a
  10.         e+=1
  11.         if b>0:
  12.             b+=c
  13.     print(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement