摘要: HDU 4489 The King's Ups and Downs 思路: 状态:dp[i]表示i个数的方案数。 转移方程:dp[n]=∑dp[j-1]/2*dp[n-j]/2*C(n-1,j-1)。 代码: 阅读全文
posted @ 2017-10-25 20:01 Wisdom+.+ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 429B - Working out 思路:从四个角递推,然后暴力每个点,有两种情况: 代码: 阅读全文
posted @ 2017-10-25 15:47 Wisdom+.+ 阅读(163) 评论(0) 推荐(0) 编辑