06 2016 档案

CDOJ Find the Fastest Server (SPFA)
摘要:原题地址:http://acm.uestc.edu.cn/#/problem/show/702 题意 略 题解 阅读全文

posted @ 2016-06-14 23:57 zhong_wang 阅读(221) 评论(0) 推荐(0)

codeforce 675C Money Transfers (思维)
摘要:原题地址:http://codeforces.com/contest/675/problem/C 题意: 略 题解 一个长度为n的区间,如果区间和为0,那么只要n-1次transfer就可以使区间为0; 我们将整个环切分为p个区间,使得每个区间和均为0,那么只需要n-p次transfer。 阅读全文

posted @ 2016-06-14 20:01 zhong_wang 阅读(149) 评论(0) 推荐(0)

模板 高精度大整数
摘要:从卿学姐那里转来的转自郭爷的模板,原来的做减法会有迷之错误 阅读全文

posted @ 2016-06-13 23:40 zhong_wang 阅读(394) 评论(0) 推荐(0)

codeforce 677D Vanya and Treasure
摘要:原题地址:http://codeforces.com/problemset/problem/677/D 题意 略 题解 直接的DP是n2m2的复杂度,据题解说通过bfs来转移可以实现n*m*sqrt(n*m)…… 阅读全文

posted @ 2016-06-13 00:48 zhong_wang 阅读(241) 评论(0) 推荐(0)

codeforce 375A Divisible by Seven
摘要:原题地址:http://codeforces.com/contest/375/problem/A 题意: 略 题解 构造,数论 阅读全文

posted @ 2016-06-12 00:35 zhong_wang 阅读(137) 评论(0) 推荐(0)

codeforce 580D Kefa and Dishes (状压DP)
摘要:原题地址:http://codeforces.com/contest/580/problem/D 题意: 略 题解 状压DP 阅读全文

posted @ 2016-06-09 21:52 zhong_wang 阅读(152) 评论(0) 推荐(0)

codeforce 557C Arthur and Table (思维)
摘要:原题地址:http://codeforces.com/problemset/problem/557/C 题意: 一个桌子有n个桌腿,每个桌腿长l,砍断需要体力d,欲使桌子保持平衡,需要砍断部分桌腿,使得剩余的桌腿中长度最大的那些桌腿的数量大于剩余桌腿数量的一半 求使桌子保持平衡最少需要花费的体力 题 阅读全文

posted @ 2016-06-09 13:08 zhong_wang 阅读(373) 评论(0) 推荐(0)

codeforce 510C Fox And Names (拓扑排序)
摘要:原题地址:http://codeforces.com/problemset/problem/510/C 题意: 略 题解 拓扑排序…… BFS+队列实现的拓扑排序 阅读全文

posted @ 2016-06-09 12:44 zhong_wang 阅读(148) 评论(0) 推荐(0)

codeforce 631C Report
摘要:原题地址:http://codeforces.com/problemset/problem/631/C 题意 给定一个序列,先后依次进行m次操作,每一次都会把区间[1-r]内的数升序或者降序排列,求m次操作之后的序列 题解 很明显,对于某一段区间的数字,和对他们最后的操作有关 用Time[]数组记录 阅读全文

posted @ 2016-06-09 02:34 zhong_wang 阅读(146) 评论(0) 推荐(0)

UESTC 1047 Alice's birthday
摘要:原题地址:http://acm.uestc.edu.cn/#/problem/show/1047题意一条长为n的路,Bob要从一个端点走到另一个端点,途中有m个服务站,每个服务站提供两种服务可供选择1.瞬间向前前进一个单位的距离2.使Bob走过一个距离的要花的时间减1问Bob在每个服务站如何选择可以 阅读全文

posted @ 2016-06-07 21:22 zhong_wang 阅读(148) 评论(0) 推荐(0)

导航