上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 40 下一页
摘要: During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, vil 阅读全文
posted @ 2018-04-16 17:26 天之道,利而不害 阅读(174) 评论(0) 推荐(0)
摘要: A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Ea 阅读全文
posted @ 2018-04-16 00:22 天之道,利而不害 阅读(177) 评论(0) 推荐(0)
摘要: Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segme 阅读全文
posted @ 2018-04-15 22:41 天之道,利而不害 阅读(165) 评论(0) 推荐(0)
摘要: Now Pudge wants to do some operations on the hook. Let us number the consecutive metallic sticks of the hook from 1 to N. For each operation, Pudge ca 阅读全文
posted @ 2018-04-15 13:41 天之道,利而不害 阅读(252) 评论(0) 推荐(0)
摘要: The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all pl 阅读全文
posted @ 2018-04-15 12:47 天之道,利而不害 阅读(256) 评论(0) 推荐(0)
摘要: A-吉姆的运算式 题解:寻找最后出现的数字。 B-沃老师学生的成绩 来自官方题解:score要去掉末尾‘0’,否则可能会TLE。。。还是太菜了。。。别忘了将开始删除的末尾0在输出的时候加上。 感受:对STL提供的模板函数还是不熟啊,学习了一波代码的写法。 阅读全文
posted @ 2018-04-13 23:09 天之道,利而不害 阅读(160) 评论(0) 推荐(0)
摘要: 题解:先只考虑行的填法。根据题意,那么这些行里面都能填啥呢???填1,2,3,4,.....,p。所以方法数是p!。再考虑列,同理也是p!。最后。。。。棋盘能旋转90度,乘以2。 阅读全文
posted @ 2018-04-13 22:09 天之道,利而不害 阅读(138) 评论(0) 推荐(0)
摘要: 题解:看到大佬的写的结构体,骤然醒悟,一块蛋糕切k次,这(k+1)块蛋糕是均匀的。所以要保存切的次数,及其对应的蛋糕大小(切了几次后的蛋糕大小),初始蛋糕的大小。 感受:以前理解的是切蛋糕是均分的,切k次每块大小为Cake/(2^k)。正解是切k次每块大小为Cake/k。 阅读全文
posted @ 2018-04-13 21:36 天之道,利而不害 阅读(169) 评论(0) 推荐(0)
摘要: Pikachu had an array with him. He wrote down all the non-empty subsequences of the array on paper. Note that an array of size n has 2n - 1 non-empty s 阅读全文
posted @ 2018-04-11 21:32 天之道,利而不害 阅读(366) 评论(0) 推荐(0)
摘要: You are given two arrays A and B, each of size n. The error, E, between these two arrays is defined . You have to perform exactly k1 operations on arr 阅读全文
posted @ 2018-04-11 20:07 天之道,利而不害 阅读(280) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 40 下一页