HDU 1069 Monkey and Banana 动态规划
摘要:先把一维都排好,再dp另一维,这样状态都是可行的,也不会漏。还有就是把最长上升子序列的n方的做法弄过来,还有加方块的时候,每一个方块要加6遍。#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #inclu
阅读全文
posted @ 2016-04-13 15:09
浙公网安备 33010602011771号