src2020/1669_nweishu/Readme.md

18 lines
480 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 1669 『入门』递归专题m位数问题
[问题描述]
  考官只给两个整数n和m1 <= n <= 81 <= m <= 5要求选手从1,2,…,n中取出m个数字组成一个m位整数统计所有的m位整数中一共有多少个素数。
  如n=3,m=2时符合条件的整数有11 12 13 21 22 23 31 32 33。其中素数有11 13 23 31一共有4个。
[输入格式]
  一行两个整数n m1 <= n <= 81 <= m <= 5 )。
[输出格式]
  一行,一个整数,表示素数的个数。  
[输入样例]
3 2
[输出样例]
4