There are 512 table tennis players participating in a table tennis match. The game adopts the elimination system method, two people play a game, the loser will be eliminated and will no longer participate in the game; the winner will enter the next round of competition, and so on until the first place in the final. How many games.
一次乒乓球比赛，共有512名乒乓球运动员参加比赛．比赛采用淘汰制赛法，两个人赛一场，失败者被淘汰，将不再参加比赛；获胜者进入下轮比赛，如此进行下去，直到决赛出第一名为止，这次乒乓球比赛一共要比赛多少场．
<gadget id="calculator">512 - 1</gadget>
<output>511</output>

<result>511</result>