摘要: 数 Description 给定正整数n,m,问有多少个正整数满足: (1) 不含前导0; (2) 是m的倍数; (3) 可以通过重排列各个数位得到n。 $n\leq10^{20},m\leq100$ Input Format 一行两个整数n,m。 Output Format 一行一个整数表示答案对 阅读全文
posted @ 2019-05-26 21:48 Parsnip 阅读(310) 评论(0) 推荐(0) 编辑