随笔分类 - 数据结构 并查集
摘要:E. Prefix Enlightenment time limit per test3 seconds memory limit per test256 megabytes There are n lamps on a line, numbered from 1 to n. Each one ha
阅读全文
摘要:D. Secret Passwords One unknown hacker wants to get the admin's password of AtForces testing system, to get problems from the next contest. To achieve
阅读全文
摘要:C. String Reconstruction 题目连接: http://codeforces.com/contest/828/problem/C Description Ivan had string s consisting of small English letters. However,
阅读全文
摘要:D. Mahmoud and a Dictionary 题目连接: http://codeforces.com/contest/766/problem/D Description Mahmoud wants to write a new dictionary that contains n word
阅读全文
摘要:C. Destroying Array 题目连接: http://codeforces.com/contest/722/problem/C Description You are given an array consisting of n non negative integers a1, a2,
阅读全文
摘要:Cutting Tree 题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4922 Description Tree in gra
阅读全文
摘要:Cluster Analysis 题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4918 Description Cluster
阅读全文
摘要:D. Swaps in Permutation 题目连接: http://www.codeforces.com/contest/691/problem/D Description You are given a permutation of the numbers 1, 2, ..., n and
阅读全文
摘要:City Park 题目连接: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=122283 problem/F Description Porto is blessed with a beautiful city park. The pa
阅读全文
摘要:D. Dividing Kingdom II 题目连接: http://www.codeforces.com/contest/687/problem/D Description Long time ago, there was a great kingdom and it was being rul
阅读全文
摘要:F. Polycarp and Hay 题目连接: http://www.codeforces.com/contest/659/problem/F Description The farmer Polycarp has a warehouse with hay, which can be repre
阅读全文
摘要:India and China Origins 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5652 Description A long time ago there are no himalayas between India and Chin
阅读全文
摘要:E. Clockwork Bomb 题目连接: http://www.codeforces.com/contest/650/problem/E Description My name is James diGriz, I'm the most clever robber and treasure h
阅读全文
摘要:E. Table Compression 题目连接: http://www.codeforces.com/contest/651/problem/E Description Little Petya is now fond of data compression algorithms. He has
阅读全文
摘要:Rikka with Graph 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5631 Description As we know, Rikka is poor at math. Yuta is worrying about this situa
阅读全文
摘要:C. Not Equal on a Segment 题目连接: http://www.codeforces.com/contest/622/problem/C Description You are given array a with n integers and m queries. The i
阅读全文
摘要:<center C. The Labyrinth</center 题目连接:http://www.codeforces.com/contest/616/problem/C DescriptionYou are given a rectangular field of n × m cells. E...
阅读全文
摘要:<center B. Coach</center 题目连接:http://www.codeforces.com/contest/300/problem/A DescriptionA programming coach has n students to teach. We know that n...
阅读全文
摘要:2733: [HNOI2012]永无乡Time Limit: 20 SecMemory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=2733Description永无乡包含 n 座岛,编号从 1 到 n,每座岛都有...
阅读全文
摘要:D. Igor In the MuseumTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/598/problem/DDescriptionIgor is in the museum and he want...
阅读全文