DeukausGames

Teleferico obi

Aug 22nd, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. # obi nivel 1 f1
  2. # python
  3. #teleferico
  4. # https://olimpiada.ic.unicamp.br/pratique/p1/2017/f1/teleferico/
  5.  
  6. #minha resposta
  7.  
  8. C = int(input())
  9. A = int(input())
  10.  
  11. div, resto = A/(C-1), A%(C-1)
  12. P = div
  13. if resto > 0:
  14.     P += 1
  15.  
  16. print(int(P))
Advertisement
Add Comment
Please, Sign In to add comment