摘要:Play Game Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns t
阅读全文
摘要:The Battle of Chibi Cao Cao made up a big army and was going to invade the whole South China. Yu Zhou was worried about it. He thought the only way to
阅读全文
摘要:Campus Design Campus Design Nanjing University of Science and Technology is celebrating its 60th anniversary. In order to make room for student activi
阅读全文
摘要:Mathematical Curse 22.25% 1000ms 65536K A prince of the Science Continent was imprisoned in a castle because of his contempt for mathematics when he w
阅读全文
摘要:Mondriaan's Dream Mondriaan's Dream Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings
阅读全文
摘要:Hard to prepare 28.63% 1000ms 262144K After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show
阅读全文
摘要:Find a path Frog fell into a maze. This maze is a rectangle containing NN rows and MM columns. Each grid in this maze contains a number, which is call
阅读全文
摘要:方格取数 设有N*N的方格图(N<=10),我们将其中的某些方格中填入正整数,而其他的方格中则放人数字0。如下图所示(见样例 ,黄色和蓝色分别为两次走的路线,其中绿色的格子为黄色和蓝色共同走过的): A B 某人从图的左上角的A点出发,可以向下行走,也可以向右走,直到到达右下角的B 点。在走过的路上
阅读全文
摘要:Games Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description Alice and Bob are playing a stone game. There are nn piles of s
阅读全文
摘要:Permutation Counting Given a permutation a1, a2, … aN of {1, 2, …, N}, we define its E-value as the amount of elements where ai > i. For example, the
阅读全文
摘要:Longest Ordered Subsequence A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ...
阅读全文