Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. user_inpt = input().split()
  2. curr_sock = int(user_inpt[0])
  3. sock_day = int(user_inpt[1])
  4. days_count = 0
  5.  
  6. while curr_sock > 0:
  7. days_count += 1
  8. curr_sock -= 1
  9. if days_count % sock_day == 0:
  10. curr_sock += 1
  11.  
  12. print(days_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement