蓝桥杯2024年第十五届省赛真题-拔河 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define int long longtypedef pair<int,int…… 题解列表 2024年04月15日 3 点赞 3 评论 1970 浏览 评分:7.2
蓝桥杯2024年第十五届省赛真题-回文数组 摘要:https://blog.csdn.net/m0_65641514/article/details/137797540 ```cpp import sys sys.setrecurs…… 题解列表 2024年04月15日 2 点赞 0 评论 991 浏览 评分:9.9
C语言 1635 整数平均值 不用指针数组 摘要:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <ctyp…… 题解列表 2024年04月15日 0 点赞 0 评论 343 浏览 评分:0.0
python--study||O.o 摘要:参考代码:c = int(input()) flag = True for i in range(2, 10): if c % i == 0: flag = False…… 题解列表 2024年04月15日 0 点赞 0 评论 638 浏览 评分:0.0
用c语言解决二级C语言-进制转换 摘要:思路:先要知道8进制是什么。%d 10进制%o 8进制代码:#include <stdio.h> #include<string.h> int main() { …… 题解列表 2024年04月15日 2 点赞 0 评论 1075 浏览 评分:10.0
python--study||O.o 摘要:参考代码:n = int(input()) if n == 0: print(0) else: arr = list(map(int, input().split())) …… 题解列表 2024年04月15日 0 点赞 0 评论 569 浏览 评分:0.0
C语言题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #inc…… 题解列表 2024年04月15日 0 点赞 0 评论 285 浏览 评分:0.0
算法最优解,比较容易理解(好数) 摘要:**解题思路:**输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。 **参考代码如下…… 题解列表 2024年04月15日 0 点赞 0 评论 623 浏览 评分:7.3
暴力算法最优解,简单干脆!!! 摘要:解题思路:输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。注意事项:参考代码:#inc…… 题解列表 2024年04月15日 0 点赞 0 评论 459 浏览 评分:0.0
第十五届蓝桥杯C++B组真题-数字接龙 摘要:##思路 这类问题我们可以用dfs和bfs,由于要记录路径,我这里先考虑的dfs,此题难点我认为是路径不能交叉,即走过的斜线不能和其它斜线交叉,由于本题数据n最大为10我们可以用一个四维数组来存斜线…… 题解列表 2024年04月15日 1 点赞 6 评论 2628 浏览 评分:10.0