摘要: LsF is visiting a local amusement park with his friends, and a mirror room successfully attracts his attention. Inside the mirror room... 阅读全文
posted @ 2018-07-25 17:25 StarHai 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Giving two strings and you should judge if they are matched. The first string contains lowercase letters and uppercase letters. The se... 阅读全文
posted @ 2018-07-24 00:20 StarHai 阅读(208) 评论(0) 推荐(0) 编辑
摘要: zk has n numbers a1,a2,...,ana1,a2,...,an. For each (i,j) satisfying 1≤iusing namespace std;const int maxn=1e5+5;int n,m;vector a,b,c... 阅读全文
posted @ 2018-07-24 00:08 StarHai 阅读(224) 评论(0) 推荐(0) 编辑
摘要: At Valentine's eve, Shylock and Lucar were enjoying their time as any other couples. Suddenly, LSH, Boss of FFF Group caught both of t... 阅读全文
posted @ 2018-07-23 22:29 StarHai 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Mr. Cui is working off-campus and he misses his girl friend very much. After a whole night tossing and turning, he decides to get to h... 阅读全文
posted @ 2018-07-23 22:22 StarHai 阅读(189) 评论(0) 推荐(0) 编辑
摘要: You are given a complete binary tree with n nodes. The root node is numbered 1, and node x's father node is ⌊x/2⌋⌊x/2⌋. At the beginning, node x has a 阅读全文
posted @ 2018-07-23 22:16 StarHai 阅读(199) 评论(0) 推荐(0) 编辑
摘要: You are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the conc... 阅读全文
posted @ 2018-07-23 21:56 StarHai 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But ... 阅读全文
posted @ 2018-07-23 21:54 StarHai 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any numb... 阅读全文
posted @ 2018-07-23 21:53 StarHai 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first ... 阅读全文
posted @ 2018-07-23 21:51 StarHai 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study ... 阅读全文
posted @ 2018-07-23 21:50 StarHai 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would pl... 阅读全文
posted @ 2018-07-23 21:48 StarHai 阅读(160) 评论(0) 推荐(0) 编辑
摘要: The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players... 阅读全文
posted @ 2018-07-23 21:46 StarHai 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一、引例 1、一类不等式组的解 二、最短路 1、Dijkstra 2、图的存储 3、链式前向星 4、Dijkstra + 优先队列 5、Bellman-Ford 6、SPFA 7、Floyd-Warshall 三、差分约束 1、数形结合 2、三角不等式 3、解的存在性 4、最大值 => 最小值 5、 阅读全文
posted @ 2018-07-20 01:56 StarHai 阅读(901) 评论(0) 推荐(0) 编辑
摘要: E. Military Problem time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output In this problem you 阅读全文
posted @ 2018-07-18 00:57 StarHai 阅读(308) 评论(0) 推荐(0) 编辑
摘要: E. Military Problemtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this probl... 阅读全文
posted @ 2018-07-18 00:57 StarHai 阅读(288) 评论(0) 推荐(0) 编辑
摘要: D. Two Strings Swapstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are give... 阅读全文
posted @ 2018-07-18 00:54 StarHai 阅读(371) 评论(0) 推荐(0) 编辑
摘要: C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar... 阅读全文
posted @ 2018-07-18 00:49 StarHai 阅读(331) 评论(0) 推荐(0) 编辑
摘要: B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp i... 阅读全文
posted @ 2018-07-18 00:46 StarHai 阅读(395) 评论(0) 推荐(0) 编辑
摘要: A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka go... 阅读全文
posted @ 2018-07-18 00:42 StarHai 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 咸鱼咕咕咕Time Limit: 1000 MS Memory Limit: 64 MBSubmit Status咸鱼有个咕咕笼。咕咕笼可以划分成m×nm×n个格子,每个小格子可以放下一只咕咕,也可以放下一个咕咕槽。现在咕咕笼里有若干只咕咕。放在咕咕笼里的咕咕... 阅读全文
posted @ 2018-07-13 00:45 StarHai 阅读(206) 评论(0) 推荐(0) 编辑
摘要: F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are giv... 阅读全文
posted @ 2018-07-09 02:13 StarHai 阅读(335) 评论(0) 推荐(0) 编辑
摘要: G. Team Playerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn play... 阅读全文
posted @ 2018-07-09 02:11 StarHai 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 咸鱼睡觉觉Time Limit: 1000 MS Memory Limit: 64 MBSubmit Status咸鱼要睡觉觉了!但那群咕咕有点烦。咸鱼决定要赶走一些咕咕,使得他们不要这么吵。那kk只咕咕们排成了一列。咸鱼做出了nn个决定,第ii个决定是要在第... 阅读全文
posted @ 2018-07-09 02:01 StarHai 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 咸鱼睡觉觉 Time Limit: 1000 MS Memory Limit: 64 MB Submit Status 咸鱼要睡觉觉了! 但那群咕咕有点烦。 咸鱼决定要赶走一些咕咕,使得他们不要这么吵。 那kk只咕咕们排成了一列。 咸鱼做出了nn个决定,第ii个决定是要在第aiai只咕咕到第bibi 阅读全文
posted @ 2018-07-09 02:01 StarHai 阅读(283) 评论(0) 推荐(0) 编辑