题解列表

筛选

P1001 (C++代码)

摘要:解题思路: 用sort函数先排序,然后求出第k大的数字减去第k小的数字的值m,再判断m是否是素数即可。参考代码:#include <bits/stdc++.h> using  namespace  ……