![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
我不是手机
这个作者很懒,什么都没留下…
展开
-
STL K - Equal Sums
题目 小A有 n 个整数数列 a1,a2,…an ,每个数列的长度为li。 请你找出两个编号不同的数列,并从这两个数列中各恰好删除一个数,使得这两个数列的和相等。 【输入格式】 输入格式如下: n l1 a1-1 a1-2 … a1-l1 l2 a2-1 a2-2 … a2-l2 … ln an-1 an-2 … an-ln 【输出格式】 如果不存在解,请在第一行输出"NO"(不含引号)。 否则,请按如下格式输出: 第一行输出"YES"(不含引号), 第二行输出两个整数 i,x ,表示选择的第一个数列编号为原创 2020-05-27 21:39:50 · 275 阅读 · 0 评论 -
STL E - Printer Queue
题目 The only printer in the computer science students’ union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get a single page of output. Because some jobs are more i原创 2020-05-27 18:51:18 · 129 阅读 · 0 评论 -
STL L - Bus of Characters
题目 In the Bus of Characters there are n rows of seat, each having 2 seats. The width of both seats in the i-th row is wi centimeters. All integers wi are distinct. Initially the bus is empty. On each of 2n stops one passenger enters the bus. There are two原创 2020-05-26 17:19:49 · 138 阅读 · 0 评论 -
STL I - Train Problem I
题目 春运期间,强哥火车站非常繁忙。很多人想坐火车回家过年(因为强哥火车站的火车是世界上最强的)。但是只有一条铁路,所有的火车都要停。所以所有的火车都是从一边进来,从另一边出来。如果A列先进站,然后B列在A列出发前进站,那么A列在B列出发后才能出发,如下图。现在你的问题是,车站最多有9列火车,所有的火车都有一个编号(编号从1到n),火车以 W1 的顺序进入铁路,你的任务是确定火车是否能以 W2 的顺序出来。 Input 输入包含多组测试用例。每组测试用例由一个整数、列车数量和两个字符串组成,列车进入的顺序原创 2020-05-26 13:36:28 · 130 阅读 · 0 评论 -
STLB - Just Prune The List
题目 You are given two list of integers. You can remove any number of elements from any of them. You have to ensure that after removing some elements both of the list will contain same elements, but not necessarily in same order. For example consider the fol原创 2020-05-24 22:08:13 · 228 阅读 · 0 评论 -
STL A - PolandBall and Game
题目 PolandBall is playing a game with EnemyBall. The rules are simple. Players have to say words in turns. You cannot say a word which was already said. PolandBall starts. The Ball which can’t say a new word loses. You’re given two lists of words familiar t原创 2020-05-24 18:58:12 · 377 阅读 · 0 评论