随笔分类 - dp算法
摘要:题目简述:监狱里要放囚徒,但是没那么简单,必须要有封口费给别的囚徒,否则她们就会大闹天宫,当遇到空牢房(因为有囚徒放出来了)或者碰壁了才会停止发放金币,问:怎样使给出的金币最少? 思路:可以用dp的做法 以下是代码(其实有个疑问,似乎不用函数做这题是做不出的?!) #include <set> #i
阅读全文
摘要:The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the r
阅读全文

浙公网安备 33010602011771号