随笔分类 -  STL

【POJ - 2664】Prerequisites? (排序+查找)
摘要:Prerequisites? 原文是English,这里直接就写中文吧 题意简述 k:已经选择的科目数;m:选择的科目类别;c:能够选择的科目数。r:要求最少选择的科目数量 在输入的k和m以下的一行是选择的科目号。 例: 3 2 //3是他选择了3科。2表示选择了两个类别 0123 9876 222 阅读全文

posted @ 2019-06-09 22:06 Sky丨Star 阅读(261) 评论(0) 推荐(0) 编辑

【CodeForces - 651C 】Watchmen(map)
摘要:Watchmen 直接上中文 Descriptions: 钟表匠们的好基友马医生和蛋蛋现在要执行拯救表匠们的任务。在平面内一共有n个表匠,第i个表匠的位置为(xi, yi). 他们需要安排一个任务计划,但是确发现了一些问题很难解决。马医生从第i个表匠到第j个表匠所需要的时间为|xi - xj| +  阅读全文

posted @ 2019-06-09 21:57 Sky丨Star 阅读(329) 评论(0) 推荐(0) 编辑

【CodeForces - 546C】Soldier and Cards (vector或队列)
摘要:Soldier and Cards 老样子,直接上国语吧 Descriptions: 两个人打牌,从自己的手牌中抽出最上面的一张比较大小,大的一方可以拿对方的手牌以及自己打掉的手牌重新作为自己的牌,放在自己手牌的最下方,而且对方输掉的那张手牌需要放在上面,自己赢的手牌放在下面。 Input 第一行的 阅读全文

posted @ 2019-06-09 21:46 Sky丨Star 阅读(258) 评论(0) 推荐(0) 编辑

【CodeForces - 501B 】Misha and Changing Handles(map)
摘要:Misha and Changing Handles CodeForces原题是英文,这里就直接上中文好了,翻译不是太给力,但是不影响做题 ^▽^ Description 神秘的三角洲里还有一个传说中的谜题等你来解开!三角洲里的小学生小明是个小天才,知天文晓地理还能夜观星象算命,好多疯狂的小朋友都想 阅读全文

posted @ 2019-06-09 21:27 Sky丨Star 阅读(225) 评论(0) 推荐(0) 编辑

【UVA - 136】Ugly Numbers(set)
摘要:Ugly Numbers Descriptions: Input Output Sample Output 题目链接: https://vjudge.net/problem/UVA-136 不难发现2,3,5之后的丑数全是有这三个数乘上{2,3,5}之后得来的,这就好办了,因为不可重复,还需要按顺序 阅读全文

posted @ 2019-06-09 21:05 Sky丨Star 阅读(420) 评论(0) 推荐(0) 编辑

【UVA - 540】Team Queue (map,队列)
摘要:Team Queue Descriptions: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not s 阅读全文

posted @ 2019-06-08 22:15 Sky丨Star 阅读(523) 评论(0) 推荐(0) 编辑

【UVA - 156 】Ananagrams (set,map,vector)
摘要:Ananagrams Descriptions: Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, 阅读全文

posted @ 2019-06-08 21:16 Sky丨Star 阅读(384) 评论(0) 推荐(0) 编辑

【UVA - 10815】Andy's First Dictionary (set)
摘要:Andy's First Dictionary Description 不提英文了 直接上中文大意吧 XY学长刚刚立下了再不过CET就直播xx的flag,为了不真的开启直播模式,XY学长决定好好学习英语。于是他每天都读一篇只包含生词的英语文章,并以自己高达450的智商在一秒钟之内记忆下来。现在给你一 阅读全文

posted @ 2019-06-07 18:23 Sky丨Star 阅读(548) 评论(0) 推荐(0) 编辑

【UVA - 101】The Blocks Problem(vector+模拟)
摘要:The Blocks Problem Descriptions:(英语就不说了,直接上翻译吧) 初始时从左到右有n个木块,编号为0~n-1,要求实现下列四种操作: move a onto b: 把a和b上方的木块全部放回初始的位置,然后把a放到b上面 move a over b: 把a上方的木块全部 阅读全文

posted @ 2019-06-07 17:26 Sky丨Star 阅读(413) 评论(0) 推荐(0) 编辑

【UVA - 10474 】Where is the Marble?(排序)
摘要:Where is the Marble? Descriptions: Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the begin 阅读全文

posted @ 2019-06-07 16:24 Sky丨Star 阅读(560) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示