2265: 松鼠吃果子(2023-T4)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:76 Solved:17

Description

Input

输入共两行,第一行为整数 N, 第二行为整数 M,意义如题目所述。

Output

输出共一行一个整数,即松鼠吃的第M个果子的标号。数据保证一定有解。

Sample Input Copy

10
4

Sample Output Copy

9

HINT

【样例说明】松鼠吃掉的果子标号依次为3,8,5(回到下面重做第 3 ),9 (回到下面重做第 4 )。



Source/Category