Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # obi nivel 1 f1
- # python
- #teleferico
- # https://olimpiada.ic.unicamp.br/pratique/p1/2017/f1/teleferico/
- #minha resposta
- C = int(input())
- A = int(input())
- div, resto = A/(C-1), A%(C-1)
- P = div
- if resto > 0:
- P += 1
- print(int(P))
Advertisement
Add Comment
Please, Sign In to add comment