【Python题解】蓝桥杯算法训练VIP-阶乘 摘要:解题思路:见代码注释参考代码:n = int(input()) def func(num): # 返回最右侧的非0值 s = str(num) for i in s[:…… 题解列表 2023年01月09日 0 点赞 0 评论 366 浏览 评分:9.9
二级C语言-计算素数和(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isprime(int n){ int i; if(n<2) return 0; for(i=2;i<n;i++){ if(…… 题解列表 2023年01月09日 0 点赞 0 评论 447 浏览 评分:9.9
二级C语言-进制转换(水题) 摘要:#include int main(){ int n,a[100],r,k=0; scanf("%d",&n); do{ r=n%8; n=n/8; a[k]=r…… 题解列表 2023年01月09日 0 点赞 0 评论 421 浏览 评分:9.9
3020: 最大数位置 摘要:```cpp #include using namespace std; int main() { int n,a[1001],maxx=1; cin>>n; f…… 题解列表 2023年01月09日 0 点赞 0 评论 804 浏览 评分:9.9
3021: Pell数列 摘要:```cpp #include using namespace std; int a[1000005]={0,1,2},k=0,n; int main() { cin>>n; …… 题解列表 2023年01月09日 0 点赞 2 评论 635 浏览 评分:9.9
3022: 流感传染 摘要:```cpp #include using namespace std; struct node { string s[105]; }; const int zl[4][2]={…… 题解列表 2023年01月09日 0 点赞 0 评论 418 浏览 评分:9.9
3023: 移动路线 摘要:```cpp #include using namespace std; int dp[20][20]; int main() { int n,m; cin>>n>>m;…… 题解列表 2023年01月09日 0 点赞 0 评论 441 浏览 评分:9.9
3024: 判断整除 摘要:```cpp #include using namespace std; int p[10000],n,m; bool vis=false; void dfs(int k) { …… 题解列表 2023年01月09日 0 点赞 0 评论 518 浏览 评分:9.9
3025: 踩方格 摘要:```cpp #include using namespace std; int f[21]={1,3},n; int main() { int n; cin>>n; …… 题解列表 2023年01月09日 0 点赞 0 评论 463 浏览 评分:9.9
进制转化的运用 摘要:解题思路:写出一个进制转化函数,利用for循环暴力解答注意事项:例如121这个十进制的数,那么找它存在的进制最小从3开始找参考代码:def nijinzhishu(n,i):#i进制的n转为十进制 …… 题解列表 2023年01月09日 0 点赞 0 评论 390 浏览 评分:9.9