Advertisement
Guest User

Untitled

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