title: How to divide players into divisions?
body: <p>Lets say we have a two players game, where one player always wins (there can't be draw).</p>
  
  <p><strong>The question is:</strong> How to divide <strong>n</strong> players into <strong>k</strong> divisions if we don't know anything about their skills? Each division should consist of the same number of players, and the best players players should be in first division, worst players in last division, and so on. There is additional constraint - player can't play more than <strong>p</strong> games (p is greater than k).</p>
  
  <p>PS: This question is inspired by starcraft battle.net.</p>