码迷,mamicode.com
首页 >  
搜索关键字:dzy loves topologica    ( 822个结果
HDU 5996:dingyeye loves stone(阶梯博弈)
http://acm.hdu.edu.cn/showproblem.php?pid=5996 题意:在一棵树上进行博弈,每次只能将当前的结点的石子放到父节点上,最后不能移动的输。 思路:比赛的时候想的是对于每一个深度为dep的结点,可以转化为dep堆同样的深度为1的结点,然后就不会了,忘了最后异或起 ...
分类:其他好文   时间:2016-12-18 01:56:58    阅读次数:203
HDU5996:dingyeye loves stone
题目链接:dingyeye loves stone 题意:给出一棵树,树上的每个节点都有石子若干, 两人博弈,每次操作都可以把任意节点的任意石子数转移到它的父亲节点, 若无法操作则输,给出树上的节点及石子数,问先手是否能赢 分析:“阶梯博弈”,若深度为偶数的节点,对方移多少石子,我们就移多少。故偶数 ...
分类:其他好文   时间:2016-12-18 01:48:37    阅读次数:181
5806 NanoApe Loves Sequence Ⅱ(尺取法)
传送门 NanoApe Loves Sequence Ⅱ Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)Total Submission(s): 1585 Accepted Subm ...
分类:其他好文   时间:2016-12-02 01:23:24    阅读次数:199
5805 NanoApe Loves Sequence
传送门 Fxx and string Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1007 Accepted Submission(s): ...
分类:其他好文   时间:2016-12-01 22:25:28    阅读次数:261
October 11th 2016 Week 42nd Tuesday
A friend is one who knows you and loves you just the same. 朋友就是懂你并爱你的人。 Leave nothing for tomorrow which can be done today. 今天能做的,就不要拖到明天。 Remember th ...
分类:其他好文   时间:2016-11-23 07:19:22    阅读次数:144
Caffe Python特征抽取
Caffe Python特征抽取 转载 http://www.cnblogs.com/louyihang-loves-baiyan/ Caffe大家一般用到的深度学习平台都是这个,关于Caffe的训练通常一般都可以通过一些命令来执行,但是在deploy阶段,如果是做实际的工程,那么C++接口用得会相 ...
分类:编程语言   时间:2016-11-10 11:57:15    阅读次数:232
Codeforces Round #342 (Div. 2) A. Guest From the Past(贪心)
传送门 Description Kolya Gerasimov loves kefir very much. He lives in year 1984 and knows all the details of buying this delicious drink. One day, as you ...
分类:其他好文   时间:2016-11-05 02:48:35    阅读次数:203
CodeForces 446A DZY Loves Sequences (DP+暴力)
题意:给定一个序列,让你找出一个最长的序列,使得最多改其中的一个数,使其变成严格上升序列。 析:f[i] 表示以 i 结尾的最长上升长度,g[i] 表示以 i 为开始的最长上升长度,这两个很容易就求得,最后枚举中间值即可。 代码如下: ...
分类:其他好文   时间:2016-10-19 17:29:17    阅读次数:201
动态规划(DP计数):HDU 5116 Everlasting L
Matt loves letter L.A point set P is (a, b)-L if and only if there exists x, y satisfying:P = {(x, y), (x + 1, y), . . . , (x + a, y), (x, y + 1), . . ...
分类:其他好文   时间:2016-10-09 20:24:23    阅读次数:237
POJ2761 Feed the dogs
Time Limit: 6000MS Memory Limit: 65536KB 64bit IO Format: %lld & %llu Description Wind loves pretty dogs very much, and she has n pet dogs. So Jiajia ...
分类:其他好文   时间:2016-10-05 00:38:15    阅读次数:259
822条   上一页 1 ... 31 32 33 34 35 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!