posted @ 2017-04-21 17:28 蓝空 阅读(185) 评论(0) 推荐(0) 编辑
摘要:
D - Coloring Brackets CodeForces - 149D 题目描述: 给一个合法的括号串,然后问这串括号有多少种涂色方案,当然啦!涂色是有限制的。 1,每个括号只有三种选择:涂红色,涂蓝色,不涂色。 2,每对括号有且仅有其中一个被... 阅读全文
摘要:
POJ - 2955 Brackets We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets seque... 阅读全文
posted @ 2017-04-20 20:43 蓝空 阅读(227) 评论(0) 推荐(0) 编辑
摘要:
Gappu has a very busy weekend ahead of him. Because, next weekend is Halloween, and he is planning to attend as many parties as he can. Since it'... 阅读全文
posted @ 2017-04-20 18:51 蓝空 阅读(149) 评论(0) 推荐(0) 编辑
摘要:
16 / 43 A ZOJ 3537 Cake 43 / 80 B LightOJ 1422 Halloween Costumes 59 / 99 C POJ 2955 Brackets 23 / 31 D CodeFo... 阅读全文
posted @ 2017-04-19 16:14 蓝空 阅读(228) 评论(0) 推荐(1) 编辑
摘要:
博客原址: http://blog.csdn.net/cc_again?viewmode=list 动态规划一直是ACM竞赛中的重点,同时又是难点,因为该算法时间效率高,代码量少,多元性强,主要考察思维能力、建模抽象能力、灵活度。 本人动态规划博客地址:http://blog.csd... 阅读全文
posted @ 2017-04-19 15:46 蓝空 阅读(321) 评论(0) 推荐(0) 编辑
摘要:
S - Making the Grade POJ - 3666 A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. ... 阅读全文
posted @ 2017-04-19 15:22 蓝空 阅读(214) 评论(0) 推荐(0) 编辑
摘要:
Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her next N (1 ≤ N ≤ 1... 阅读全文
posted @ 2017-04-19 10:50 蓝空 阅读(115) 评论(0) 推荐(0) 编辑
摘要:
Today is army day, but the servicemen are busy with the phalanx for the celebration of the 60th anniversary of the PRC. A phalanx is a matrix of ... 阅读全文
posted @ 2017-04-19 10:20 蓝空 阅读(352) 评论(0) 推荐(0) 编辑
摘要:
P - FatMouse and Cheese HDU - 1078 FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: e... 阅读全文
posted @ 2017-04-18 22:21 蓝空 阅读(161) 评论(0) 推荐(0) 编辑