链接:登录—专业IT笔试面试备考平台_牛客网
来源:牛客网
题目描述
In a two-player competitive match, for any positive integer aaa, we define the Best of 2a−12a-12a−1 format as follows: the two players continue to compete until one of them wins aaa times, thereby winning the overall match. The Best of 2a−12a-12a−1 format includes a maximum of 2a−12a-12a−1 games and a minimum of aaa games.
For any two positive integers aaa and bbb, we define the Best of 2b−12b-12b−1 of Best of 2a−12a-12a−1 format as follows: the two players compete in a major match using the Best of 2b−12b-12b−1 format, which consists of a maximum of 2b−12b-12b−1 major games and a minimum of bbb major games. Each major game is a Best of 2a−12a-12a−1 format, consisting of a maximum of 2a−12a-12a−1 minor games and a minimum of aaa minor games. For example, Team A and Team B play a B