摘要:
LsF is visiting a local amusement park with his friends, and a mirror room successfully attracts his attention. Inside the mirror room... 阅读全文
摘要:
Giving two strings and you should judge if they are matched. The first string contains lowercase letters and uppercase letters. The se... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study ... 阅读全文
摘要:
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... 阅读全文
摘要:
The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players... 阅读全文
摘要:
一、引例 1、一类不等式组的解 二、最短路 1、Dijkstra 2、图的存储 3、链式前向星 4、Dijkstra + 优先队列 5、Bellman-Ford 6、SPFA 7、Floyd-Warshall 三、差分约束 1、数形结合 2、三角不等式 3、解的存在性 4、最大值 => 最小值 5、 阅读全文
摘要:
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 阅读全文
摘要:
E. Military Problemtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this probl... 阅读全文
摘要:
D. Two Strings Swapstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are give... 阅读全文
摘要:
C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar... 阅读全文
摘要:
B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp i... 阅读全文
摘要:
A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka go... 阅读全文
摘要:
咸鱼咕咕咕Time Limit: 1000 MS Memory Limit: 64 MBSubmit Status咸鱼有个咕咕笼。咕咕笼可以划分成m×nm×n个格子,每个小格子可以放下一只咕咕,也可以放下一个咕咕槽。现在咕咕笼里有若干只咕咕。放在咕咕笼里的咕咕... 阅读全文
摘要:
F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are giv... 阅读全文
摘要:
G. Team Playerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn play... 阅读全文
摘要:
咸鱼睡觉觉 Time Limit: 1000 MS Memory Limit: 64 MB Submit Status 咸鱼要睡觉觉了! 但那群咕咕有点烦。 咸鱼决定要赶走一些咕咕,使得他们不要这么吵。 那kk只咕咕们排成了一列。 咸鱼做出了nn个决定,第ii个决定是要在第aiai只咕咕到第bibi 阅读全文
摘要:
咸鱼睡觉觉Time Limit: 1000 MS Memory Limit: 64 MBSubmit Status咸鱼要睡觉觉了!但那群咕咕有点烦。咸鱼决定要赶走一些咕咕,使得他们不要这么吵。那kk只咕咕们排成了一列。咸鱼做出了nn个决定,第ii个决定是要在第... 阅读全文