【DP】【Asia - Harbin - 2010/2011】【Permutation Counting】
摘要:
【题目描述】Given a permutation a1, a2,...aN of {1, 2,..., N}, we define its E-value as the amount of elements where ai > i. For example, the E-value of permutation {1, 3, 2, 4} is 1, while the E-value of {4, 3, 2, 1} is 2. You are requested to find how many permutations of {1, 2,..., N} whose E-value 阅读全文
posted @ 2012-12-31 13:17 孤星ぁ紫辰 阅读(200) 评论(1) 推荐(1)
浙公网安备 33010602011771号