10 2017 档案

摘要:题目描述 对于刚上大学的牛牛来说,他面临的第一个问题是如何根据实际情况申请合适的课程。 在可以选择的课程中,有 2n2n 节课程安排在 nn 个时间段上。在第 ii(1 \leq i \leq n1≤i≤n)个时间段上,两节内容相同的课程同时在不同的地点进行,其中,牛牛预先被安排在教室 c_ici​ 阅读全文
posted @ 2017-10-29 16:40 阿波罗2003 阅读(252) 评论(0) 推荐(0) 编辑
摘要:题目传送门 传送点I 传送点II 题目大意 (此题目不需要大意,我认为它已经很简洁了) 题目传送门 传送点I 传送点II 题目大意 (此题目不需要大意,我认为它已经很简洁了) 显然线段树合并(我也不知道哪来这么多显然) 考虑将每条路径拆成两条路径 s -> lca 和 t -> lca 。 对于前一 阅读全文
posted @ 2017-10-29 10:54 阿波罗2003 阅读(251) 评论(0) 推荐(0) 编辑
摘要:题目大意 给定A串,选择A串的前lB个字符作为B串,再在B串后增加一个字符,问最长的相等的A串前缀和B串的后缀。 Solution 1(KMP) 用1个奇怪的字符连接A串和B串,再用KMP求最长公共前后缀。 Solution 2(Hash) hash A串的前缀和B的后缀,然后for去比较,取最大的 阅读全文
posted @ 2017-10-28 17:07 阿波罗2003 阅读(257) 评论(0) 推荐(0) 编辑
摘要:Description 在光之大陆的土地上,各种势力盘根错节。来自光之峡谷的精灵,来自黑暗森林的亡灵,来自古老东方的人类共同生活在一起。善于打造装置的矮人,善于发明的侏儒,隐匿于山林的巨人也坚守着属于自己的领土。这些种族之间关系错综复杂,构成了极其庞大的关系网络。大魔法师小P想要研究其中的种族关系。 阅读全文
posted @ 2017-10-27 21:52 阿波罗2003 阅读(327) 评论(0) 推荐(0) 编辑
摘要:This is an interactive problem. You are given a sorted in increasing order singly linked list. You should find the minimum integer in the list which i 阅读全文
posted @ 2017-10-08 16:55 阿波罗2003 阅读(295) 评论(0) 推荐(0) 编辑
摘要:Adieu l'ami. Koyomi is helping Oshino, an acquaintance of his, to take care of an open space around the abandoned Eikou Cram School building, Oshino's 阅读全文
posted @ 2017-10-07 19:29 阿波罗2003 阅读(685) 评论(0) 推荐(1) 编辑
摘要:— This is not playing but duty as allies of justice, Nii-chan! — Not allies but justice itself, Onii-chan! With hands joined, go everywhere at a speed 阅读全文
posted @ 2017-10-07 19:04 阿波罗2003 阅读(431) 评论(0) 推荐(0) 编辑
摘要:Even if the world is full of counterfeits, I still regard it as wonderful. Pile up herbs and incense, and arise again from the flames and ashes of its 阅读全文
posted @ 2017-10-07 18:52 阿波罗2003 阅读(248) 评论(0) 推荐(0) 编辑
摘要:Rock... Paper! After Karen have found the deterministic winning (losing?) strategy for rock-paper-scissors, her brother, Koyomi, comes up with a new g 阅读全文
posted @ 2017-10-07 18:46 阿波罗2003 阅读(198) 评论(0) 推荐(0) 编辑
摘要:You are given n strings s1, s2, ..., sn consisting of characters 0 and 1. m operations are performed, on each of them you concatenate two existing str 阅读全文
posted @ 2017-10-06 20:32 阿波罗2003 阅读(423) 评论(0) 推荐(0) 编辑
摘要:Snark and Philip are preparing the problemset for the upcoming pre-qualification round for semi-quarter-finals. They have a bank of nproblems, and the 阅读全文
posted @ 2017-10-06 20:20 阿波罗2003 阅读(371) 评论(0) 推荐(0) 编辑
摘要:Have you ever tried to explain to the coordinator, why it is eight hours to the contest and not a single problem has been prepared yet? Misha had. And 阅读全文
posted @ 2017-10-06 19:36 阿波罗2003 阅读(210) 评论(0) 推荐(0) 编辑
摘要:As technologies develop, manufacturers are making the process of unlocking a phone as user-friendly as possible. To unlock its new phone, Arkady's pet 阅读全文
posted @ 2017-10-06 19:31 阿波罗2003 阅读(370) 评论(0) 推荐(0) 编辑