In the sixth grade, 50 students participated in the table tennis single-round knockout round and decided the champion. Every two people hold a match, the winner enters the next knockout round, and the loser is out; if there is a bye, directly enters the next round. How many games will it take to determine the champion?
六年级有50名同学参加乒乓球单轮淘汰赛，决出冠军．每两人举行一场比赛，胜者进入下一轮淘汰赛，败者出局；若有轮空者，直接进入下一轮．要决出冠军，一共需进行多少场比赛？
<gadget id="calculator">50 - 1</gadget>
<output>49</output>

<result>49</result>