摘要: CF1239A Ivan the Fool and the Probability Theory 洛谷链接 首先考虑 $n=1$ 时的情况,设 $ans_i$ 为有 $i$ 列时的答案,分情况讨论。 当 $col_i=col_{i-1}$ 时,当前的方案数就等同于前 $i-1$ 列的合法方案数量,即 阅读全文
posted @ 2022-01-08 18:18 ImALAS 阅读(40) 评论(0) 推荐(0) 编辑