1073G

CF1073G Yet Another LCP Problem

一道 *2600 调了一年,代码细节是有点粪了,但自己菜也是挺菜的。/oh/oh 考虑容斥,令 \(f(A)=\sum\limits_{i,j\in A}\operatorname{lcp}(i,j)\),那么答案就是 \(f(A\cup B)-f(A)-f(B)\)(这里的并表示可重集合并)。 令 ......
Another Problem 1073G 1073 Yet
共1篇  :1/1页 首页上一页1下一页尾页