Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- tokens = input().split()
- dividend = int(tokens[0])
- divisor = int(tokens[1])
- whole = math.floor(dividend/divisor)
- numerator = dividend - whole * divisor
- denominator = divisor
- print(str(whole) + " " + str(numerator) + " " + str(denominator))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement