目录 Problem DescriptionInputOutputSample InputSample Output原题链接解题思路代码实现(C++) Problem Description 给你一个序列X和另一个序列Z,当Z中的所有元素都在X中存在,并且在X中的下标顺序是严格递增的,那么就把Z叫做X的子序列。 例如:Z=<a,b,f,c>是序列X=<a,b,c,f,b,c>的一
题目描述 The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentle
题目描述 Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there are certain requirements.Mr Wang selecte
题目描述 Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the friends know eac
题目链接:http://codeup.cn/problem.php?cid=100000575&pid=4 题目描述 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any
题目链接:http://codeup.cn/problem.php?cid=100000599&pid=0 题目描述 People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops
题目链接:http://codeup.cn/problem.php?cid=100000596&pid=1 题目描述 Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to