2^k进制数 (C语言描述,蓝桥杯) 摘要:#include <stdio.h> #include <math.h> long C(int ,int ); //为C(n+m-1)(m)计算排列数,其中n为…… 题解列表 2017年10月20日 6 点赞 6 评论 1661 浏览 评分:0.0
2^k进制数:组合数 摘要:解题思路:组合数注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; long long c(int n, int …… 题解列表 2024年08月09日 0 点赞 0 评论 386 浏览 评分:0.0
python,形象具体,老实解题 摘要:解题思路:依次判断从11到指定条件下所能达到的最大值,最大值的计算方法,直接用最大位数作为2的指数,然后转化为对应的新进制下的数,可知,所有满足条件的数都应该在该范围内,范围确定后,接下来的步骤是如何…… 题解列表 2022年10月02日 0 点赞 0 评论 408 浏览 评分:0.0
小小新手:2^k进制数 摘要:```python def xx(i, n): ss = [] while i: ss.append(i % n) i //= n …… 题解列表 2022年02月24日 0 点赞 0 评论 406 浏览 评分:0.0
java 动态规划方法 摘要:解题思路:注意事项:它虽然可以过,但是过不了最大的样例,并不能算完全正确参考代码:import java.math.BigInteger; import java.security.PKCS12At…… 题解列表 2021年11月21日 0 点赞 0 评论 236 浏览 评分:0.0
1110: 2^k进制数(C语言代码) 递归回溯 摘要:解题思路:这道题用回溯思想比较好理解,因为每一位都比右边一位小,所以从左到右逐位确定比较方便确定每一位数都要递归一次,每一个递归里都有一个循环,从本位的最小值(前一位的值加一)循环到最大值循环内继续向…… 题解列表 2021年02月25日 0 点赞 0 评论 519 浏览 评分:0.0
2^k进制数-题解(C++代码) 组合数+巧妙避免溢出 摘要:其实这题卡了挺久的,emmmm有点恶心,各种关系推了挺久,同时因为采用了比较巧妙的也导致了一些bug调试了挺久,不过好像数据还挺有的,原题中说结果位数k>>w; int maxsize=0…… 题解列表 2020年04月16日 0 点赞 0 评论 927 浏览 评分:0.0
2^k进制数-题解(Java代码) 摘要:暴力解法 ```java import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2020年02月20日 0 点赞 0 评论 959 浏览 评分:0.0
2^k进制数-题解(C++代码) 摘要: #include #include using namespace std; int add(int a) { return (a+1…… 题解列表 2020年02月16日 0 点赞 0 评论 784 浏览 评分:0.0