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