你以为是寻路?

其实就是选择。

答案 = alt

while (line = readline()) {
    let nums = line.split(" ");
    let col = +nums[0];
    let row = +nums[1];
    let num = col + row;
    let ans1 = 1;
    for (let i = 0; i < col; i++) {
        ans1 *= num;
        num--;
    }
    let ans2 = 1;
    for (let i = 1; i <= col; i++) {
        ans2 *= i;
    }
    let ans = ans1 / ans2;
    console.log(ans);
}