
动态规划
AC-NEWBIE
得之淡然 失之坦然
展开
-
UVALive - 8024 - Stack Construction
题目链接:点击打开链接 题目大意: 现在有一个字符串,要你用最少的步骤打印出这个字符串,打印规则为:对于每个步骤你可以把单个字符放到一个栈的顶部--push(),或者把栈顶部的字母弹出--pop(),或者打印栈顶部的字母--print()(不弹出),并且打印完字符串后要把所有剩余的字符弹出。 解题思路: 一:对于一个字符串,显然print()的次数是一定的,为字符串长度。push()和原创 2017-09-24 09:49:07 · 211 阅读 · 0 评论 -
第三场-J-Temple Build
题目链接:点击打开链接 (一)题面: Description The Dwarves of Middle Earth are renowned for their delving and smithy ability, but they are also master builders. During the time of the dragons, the dwarves fo原创 2018-04-16 10:54:55 · 252 阅读 · 0 评论