随笔分类 - 数据结构
摘要:4408: [Fjoi 2016]神秘数 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=4408 Description 一个可重复数字集合S的神秘数定义为最小的不能被S的子集的和表示的正整数。例如S={1,1,1,4,13}, 1 =
阅读全文
摘要:3674: 可持久化并查集加强版 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=3674 Description Description: 自从zkysb出了可持久化并查集后…… hzwer:乱写能AC,暴力踩标程 KuribohG:我不
阅读全文
摘要:E. Little Artem and Time Machine 题目连接: http://www.codeforces.com/contest/669/problem/E Description Little Artem has invented a time machine! He could
阅读全文
摘要:E. Beautiful Subarrays 题目连接: http://www.codeforces.com/contest/665/problem/E Description One day, ZS the Coder wrote down an array of integers a with
阅读全文
摘要:CVS 题目连接: http://acm.timus.ru/problem.aspx?space=1&num=1992 Description Yoda: Visit I will the cloners on Kamino... And see this army they have create
阅读全文
摘要:E. Bear and Contribution 题目连接: http://www.codeforces.com/contest/658/problem/E Description Codeforces is a wonderful platform and one its feature show
阅读全文
摘要:xiaoxin and his watermelon candy 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5654 Description During his six grade summer vacation, xiaoxin got lo
阅读全文
摘要:卿学姐种花 题目连接: http://acm.uestc.edu.cn/ /problem/show/1292 Description 众所周知,在喵哈哈村,有一个温柔善良的卿学姐。 卿学姐喜欢和她一样美丽的花。所以卿学姐家的后院有很多的花坛。 卿学姐有$n$个花坛,一开始第$i$个花坛里有$A[i
阅读全文
摘要:DZY Loves Sorting 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5649 Description DZY has a sequence a[1..n]. It is a permutation of integers 1∼n. No
阅读全文
摘要:E. Bear and Forgotten Tree 2 题目连接: http://www.codeforces.com/contest/653/problem/E Description A tree is a connected undirected graph consisting of n
阅读全文
摘要:C. Hostname Aliases 题目连接: http://www.codeforces.com/contest/644/problem/C Description There are some websites that are accessible through several diff
阅读全文
摘要:MC挖矿世界 题目连接: http://acm.uestc.edu.cn/ /problem/show/1287 Description 银牌爷和柱神开始玩MC啦,但是怪物实在是太多了,于是银牌爷决定去挖点钻石提升装备。 来到矿脉的银牌爷发现矿脉错综复杂。 矿脉是由一些矿洞和一些通道组成的,通道连着
阅读全文
摘要:Annoying problem 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5293 Description Coco has a tree, whose vertices are conveniently labeled by 1,2,…,n.
阅读全文
摘要:Assignment 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5289 Description Tom owns a company and he is the boss. There are n staffs which are number
阅读全文
摘要:D. Least Cost Bracket Sequence 题目连接: http://www.codeforces.com/contest/3/problem/D Description This is yet another problem on regular bracket sequence
阅读全文
摘要:D. Zip line 题目连接: http://www.codeforces.com/contest/650/problem/D Description Vasya has decided to build a zip line on trees of a nearby forest. He wa
阅读全文
摘要:E. Table Compression 题目连接: http://www.codeforces.com/contest/651/problem/E Description Little Petya is now fond of data compression algorithms. He has
阅读全文
摘要:Toposort 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5638 Description There is a directed acyclic graph with n vertices and m edges. You are allow
阅读全文
摘要:C. Package Delivery 题目连接: http://www.codeforces.com/contest/627/problem/C Description Johnny drives a truck and must deliver a package from his hometo
阅读全文
摘要:D. Factory Repairs 题目连接: http://www.codeforces.com/contest/635/problem/D Description A factory produces thimbles in bulk. Typically, it can produce up
阅读全文

浙公网安备 33010602011771号