动态规划—C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <malloc.h> #include <math.h> #def…… 题解列表 2022年09月15日 0 点赞 0 评论 844 浏览 评分:9.9
python,形象具体,老实解题 解题思路:依次判断从11到指定条件下所能达到的最大值,最大值的计算方法,直接用最大位数作为2的指数,然后转化为对应的新进制下的数,可知,所有满足条件的数都应该在该范围内,范围确定后,接下来的步骤是如何选择正确的数,从高位到低位,每个数位都满足严格递增的规则, 题解列表 2022年10月02日 0 点赞 0 评论 642 浏览 评分:0.0
2^k进制数:组合数 摘要:解题思路:组合数注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; long long c(int n, int …… 题解列表 2024年08月09日 0 点赞 0 评论 555 浏览 评分:0.0
编写题解 1110: 2^k进制数 ```cpp#include#includeusingnamespacestd;intpr,max2,tot=0;voiddp(intbit,intn){if(bit>1&&bit>k>>w;pr=w/k+1;max2=pow(2,w%k)-1;max=pow(2,k)-1;for(inti=2;i 题解列表 2024年11月10日 0 点赞 0 评论 582 浏览 评分:9.9