摘要: Description 有 $n$ 个变量 $w[1],w[2],\cdots ,w[n]$ ,每个变量可以取 $W$ 或 $ W$ 。 有 $p$ 个式子,形如 $$H_i=a_i\times |w[x_i] w[y_i]|+b_i\times |w[y_i] w[z_i]|+c_i\times 阅读全文
posted @ 2018-06-09 21:13 aziint 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 咸鱼的自我介绍 阅读全文
posted @ 2018-06-09 20:22 aziint 阅读(439) 评论(0) 推荐(0) 编辑
摘要: Description 给定一个由小写字母组成的字符串 $s$ ,每次你可以删去它的一个非回文子串,求删成空串的最小次数。 Input 第一行一个整数 $t(t\le 20)$ 表示数据组数。 每组数据第一行一个整数 $n\le 10^5$ 表示字符串长度, 第二行一个字符串 $s$ 。 Outpu 阅读全文
posted @ 2018-06-09 19:52 aziint 阅读(186) 评论(0) 推荐(0) 编辑
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.