ArifJan

Проценты

Oct 18th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. p = int(input())
  2. x = int(input())
  3. y = int(input())
  4. money_before = 100 * x + y
  5. money_after = int(money_before * (100 + p) / 100)
  6. print(money_after // 100, money_after % 100)
Add Comment
Please, Sign In to add comment