I. Characters with Hash Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, h ...
分类:
其他好文 时间:
2018-09-09 18:14:52
阅读次数:
293
是长者的题目。~~其实还是有点水的~~。 下面是黑历史 ~~准队爷dzy第一次提交四道题182分。~~ ~~然后dzy告诉我他那次是提交184分~~ ~~184就184吧,反正和182没啥区别~~ ~~机房里有个只提交了两道题的神仙200分~~ ~~我第一次评测275分~~ 黑历史结束 当然最后准队 ...
分类:
其他好文 时间:
2018-09-09 15:28:17
阅读次数:
151
Travel PP loves travel. Her dream is to travel around country A which consists of N cities and M roads connecting them. PP has measured the money each ...
分类:
其他好文 时间:
2018-09-08 22:36:31
阅读次数:
163
https://www.luogu.org/problemnew/show/P2418 暴力 DP 做这题只有 30 分 考虑用线段树优化这个 DP 先处理一下整个房间都膜拜一个人的情况,然后将 1 的当成 1, 2 当成 1,处理前缀和,可以发现对于前缀和为 x 的情况,只能从前缀和为 [x k, ...
分类:
其他好文 时间:
2018-09-07 22:05:13
阅读次数:
195
1 在利用branch-site检测趋同进化的时候 2 3 1.可以将各个趋同进化枝分别进行检测,分析的时候不去除某一趋同枝系 4 2.在分析的时候,需要去除其他趋同枝系的影响 1 I have 25 sequences of a bacteria gene each from one strain... ...
分类:
其他好文 时间:
2018-08-30 11:03:59
阅读次数:
163
明确一下 一个字符串有x左括号不匹配 和 另一个字符串有x个右括号不匹配 这俩是一定能够匹配的 脑子有点迷 emm。。。 所以统计就好了 统计x个左括号的有几个,x个右括号的有几个 然后 乘一下 如果一个串 同时存在左右括号都不匹配的情况 则忽略 因为这个串需要另外两个括号去匹配 不要忘了处理左右括 ...
分类:
其他好文 时间:
2018-08-27 18:45:07
阅读次数:
176
根本不会。。。 似乎有很高妙的分治做法啊!https://www.cnblogs.com/forever97/p/bzoj4059.html 就是说,如果当前区间为[l,r],有一个i满足pre[i]<l&&nxt[i]>r,那么任意一个包含i点的区间都不无聊,因此只需要再检验[l,i-1]和[i+ ...
分类:
其他好文 时间:
2018-08-26 22:03:17
阅读次数:
148
Favorite Dice BuggyD loves to carry his favorite die around. Perhaps you wonder why it's his favorite? Well, his die is magical and can be transformed ...
分类:
其他好文 时间:
2018-08-26 01:12:03
阅读次数:
201
Description ? "看题戳我" 给你一个序列,要求支持区间加斐波那契数列和区间求和。$~n \leq 3 \times 10 ^ 5, ~fib_1 = fib_2 = 1~$. Solution ? 先来考虑一段斐波那契数列如何快速求和,根据性质有 $$ \begin {align} f ...
分类:
其他好文 时间:
2018-08-25 14:04:14
阅读次数:
339
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...
分类:
其他好文 时间:
2018-08-24 21:46:35
阅读次数:
197