摘要: \(\text{Problem}:\)题目链接 \(\text{Solution}:\) 记一个状态为有序三元组 \((x,y,z)\)。 当 \(x<y<z\) 时,考虑先手一步必胜的情况:当 \(z-y=y-x\) 且后手上一步选了 \(z\) 时,先手给定 \(z-y\) 这个数。 当 \(x 阅读全文
posted @ 2021-02-23 16:53 zkdxl 阅读(47) 评论(0) 推荐(0) 编辑
摘要: \(\text{Problem}:\)Prime Flip \(\text{Solution}:\) 区间反转、取反等操作通常和差分有关。 记 \(b_{i}=(a_{i}\not = a_{i-1})(i\geq 1)\),特殊的,使得 \(b_{0}=0\),那么我们要使得 \(a\) 数组全部 阅读全文
posted @ 2021-02-23 14:19 zkdxl 阅读(60) 评论(0) 推荐(0) 编辑