Picking

D. Letter Picking

D. Letter Picking Alice and Bob are playing a game. Initially, they are given a non-empty string $s$, consisting of lowercase Latin letters. The lengt ......
Picking Letter

Letter Picking (CF D) (区间DP, 暴力)(0,1,2 Alice 平 bob ,尽可能小,尽可能大)

思路 : 区间dp(区间DP的时间复杂度 不一定是 n^3 ,可能是 n^2 更具题意) 直接题 直接 区间dp, 0 Alice 赢 1 平局 2 Bob 赢 (于是 alice 尽可能小, bob 尽可能大) alice 选 l , bob 可以选 l+1, 或者 r alice 选 r , b ......
尽可能 区间 暴力 Picking Letter

CF1366E Chiori and Doll Picking

CF1366E Chiori and Doll Picking 位运算和 __builtin 函数记得开 long long!!!!! 这题很厉害。 记 $p(x) = \operatorname{popcount}(x)$,$\operatorname{span}(B)$ 表示 $B$ 张成的线性 ......
Picking Chiori 1366E 1366 Doll
共3篇  :1/1页 首页上一页1下一页尾页