码迷,mamicode.com
首页 >  
搜索关键字:dzy loves topologica    ( 822个结果
Codeforces Round #511 (Div. 2)
又到了摸鱼的时候了23333 A. Little C Loves 3 I 题意:给一个数,分解为不被3整除的3个数 题解:构造,如果这个数被3整除,就构造为1,1,n-2;否则构造为1,2,n-3 1 class Solution(object): 2 def run(self): 3 n = in ...
分类:其他好文   时间:2018-09-22 18:17:52    阅读次数:144
CSU OJ 1340 A Sample Problem
Description My girlfriend loves 7 very much, she thinks it is lucky! If an integer contains one or more 7, she will think it is lucky too! Description ...
分类:其他好文   时间:2018-09-21 15:22:06    阅读次数:186
HDU - 4405 Aeroplane chess(概率dp)
Aeroplane chess Aeroplane chess Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For e ...
分类:其他好文   时间:2018-09-19 23:31:07    阅读次数:207
2018 徐州网络赛 I
262144K Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, he calls Kimura K ...
分类:其他好文   时间:2018-09-13 01:10:37    阅读次数:148
ACM-ICPC 2018 I. Characters with Hash
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
【膜你赛】2018-9-7
是长者的题目。~~其实还是有点水的~~。 下面是黑历史 ~~准队爷dzy第一次提交四道题182分。~~ ~~然后dzy告诉我他那次是提交184分~~ ~~184就184吧,反正和182没啥区别~~ ~~机房里有个只提交了两道题的神仙200分~~ ~~我第一次评测275分~~ 黑历史结束 当然最后准队 ...
分类:其他好文   时间:2018-09-09 15:28:17    阅读次数:151
HDU - 4284 Travel(floyd+状压dp)
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
luoguP2418 yyy loves OI IV
https://www.luogu.org/problemnew/show/P2418 暴力 DP 做这题只有 30 分 考虑用线段树优化这个 DP 先处理一下整个房间都膜拜一个人的情况,然后将 1 的当成 1, 2 当成 1,处理前缀和,可以发现对于前缀和为 x 的情况,只能从前缀和为 [x k, ...
分类:其他好文   时间:2018-09-07 22:05:13    阅读次数:195
SPOJ1026 概率DP
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
【CF446C】DZY Loves Fibonacci Numbers (线段树 + 斐波那契数列)
Description ? "看题戳我" 给你一个序列,要求支持区间加斐波那契数列和区间求和。$~n \leq 3 \times 10 ^ 5, ~fib_1 = fib_2 = 1~$. Solution ? 先来考虑一段斐波那契数列如何快速求和,根据性质有 $$ \begin {align} f ...
分类:其他好文   时间:2018-08-25 14:04:14    阅读次数:339
822条   上一页 1 ... 11 12 13 14 15 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!