Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = input().split()
- socks = int(a[0])
- days = int(a[1])
- total_socks = socks
- total_days = 0
- while total_socks > 0:
- total_days += 1
- if total_days % days != 0:
- total_socks -= 1
- print(total_days)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement