
多校
zyd8888102
这个作者很懒,什么都没留下…
展开
-
HDU-2017 多校训练赛1(赛上+补题)
1001-Add More Zero题意:求2^m -1 =>10^k 已知m 求最大的k思路:赛上没有多想就开始找规律。。然后浪费了一些时间还wa了,最后改过了。 后来看题解 发现就是个简单的公式,一行代码呜呜呜呜 10^k<=2^m -1 log(10)10^k<= log(10) 2^m -1 —>k<=mlog2/log10#include <iostream>#include原创 2017-07-25 18:36:46 · 739 阅读 · 0 评论 -
HDU6035 Colorful Tree(dfs继承思想,虚树怎么写??)
There is a tree with nn nodes, each of which has a type of color represented by an integer, where the color of node ii is cici. The path between each two different nodes is unique, of which we define t原创 2017-07-26 16:48:35 · 486 阅读 · 0 评论 -
HDU - 6047 多校2 1003 Maximum Sequence (贪心+优先队列)
Steph is extremely obsessed with “sequence problems” that are usually seen on magazines: Given the sequence 11, 23, 30, 35, what is the next number? Steph always finds them too easy for such a genius l原创 2017-07-28 11:06:26 · 259 阅读 · 0 评论