TopCoder SRM 656 Div1 Medium PermutationCounts、Div2 Hard PermutationCountsDiv2

良い問題だと思うが、自力でこの解法は求められない…。 http://community.topcoder.com/stat?c=problem_statement&pm=13550 http://community.topcoder.com/stat?c=problem_statement&pm=13739