用户工具

站点工具


2023-2024:teams:al_in_and_back_to_whk:23-nowcoder-1:d

题意简述

给出n*m方格,摆满石子,两人轮流取石子,每次选择一个点(x,y),取走所有(i,j)处石子,其中 $i \leq x,j \leq y$ 取走最后一枚石子的输。

题解

除了 1*1 先手必胜。

令先手取(1,1),若此时后手取 (x,y) 得到必胜策略,则使先手取 (x,y)

2023-2024/teams/al_in_and_back_to_whk/23-nowcoder-1/d.txt · 最后更改: 2023/07/19 19:03 由 forget-star