- 博客(2)
- 收藏
- 关注
原创 洛谷P1036 n个数中选取k个的所有不重复可能遍历
void sumk(int *x,int k,int end,int sum,int start) //不必rerturn 因为sum作为参数在传递 /*从n个里取k个 ,k为剩余应该取的数目,sum为当前和,start取第?个数的 起始循环坐标,end为末尾坐标*/ {if(k==0){ if(isprime(sum)) m++; //选取完毕后,判断sum是否是质数 } ...
2019-05-18 22:03:58
300
原创 POJ 1979 深度优先搜索
Language: Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 48484 Accepted: 25866 Description There is a rectangular room, covered with square tiles. Each tile is colored eit...
2019-04-22 18:51:03
117
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人