水~
momoyisa
这个作者很懒,什么都没留下…
展开
-
HDU1856 More is better(并查集)
Problem Description Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there are certain requirements.原创 2016-01-20 12:22:00 · 238 阅读 · 0 评论 -
SHU1952 Odd Pairs(维护前缀和)
Description 已知一个长度为N的数列A[1..N]。 现在给出Q次查询,每次查询一个区间[L, R]。 对于每一个区间,求使得(A[i] + A[j])为奇数的(i, j)的对数 (L Input 多组数据,第一行有一个整数T表示数据组数。(T 之后有T组数据,每组数据第一行为两个整数N和Q,表示数列长度及查询数量。 (1 接着有一行N个元素的数原创 2015-12-21 16:53:24 · 645 阅读 · 0 评论 -
Educational Codeforces Round 12 C.Simple Strings
zscoder loves simple strings! A string t is called simple if every pair of adjacent characters are distinct. For example ab, aba, zscoder are simple whereas aa, add are not simple. zscoder is g原创 2016-04-21 12:37:56 · 368 阅读 · 0 评论