摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3664题意:给出数字n,问n的所有的排列中满足Ai>i 数字恰好为 k的排列的个数。sl : dpdp【n】【k】 = dp【n-1】【k】*(k+1) + dp【n-1】【k-1】*(n-1-k+1);为什么? ... 阅读全文
posted @ 2014-08-12 23:53 acvc 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 只有一句话 : 交题的那一瞬间总是这么的感动 嘎嘎。虽然说只能搞水体。。。 阅读全文
posted @ 2014-08-12 22:33 acvc 阅读(144) 评论(0) 推荐(0) 编辑
摘要: FSF’s gameProblem DescriptionFSF has programmed a game.In this game, players need to divide a rectangle into several same squares.The length and width... 阅读全文
posted @ 2014-08-12 20:30 acvc 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Magical ForestProblem DescriptionThere is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a... 阅读全文
posted @ 2014-08-12 19:24 acvc 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Stupid Tower DefenseProblem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from ... 阅读全文
posted @ 2014-08-12 19:20 acvc 阅读(221) 评论(0) 推荐(0) 编辑