C语言训练-委派任务* 摘要:解题思路:深搜递归注意事项:参考代码:#include<iostream> #include<cstdio> #include<cstring> using namespace std; co…… 题解列表 2024年08月11日 0 点赞 0 评论 267 浏览 评分:0.0
弟弟的作业(纯C++代码,不使用scanf) 摘要:解题思路:用while循环读取输入的算式,直到读取到空行,查找并记录运算符‘+’或者‘-’以及‘=’在字符串s中的位置,通过这两个位置,对字符串进行切片操作,最后进行判断。注意事项: 运用到了#inc…… 题解列表 2024年08月11日 2 点赞 0 评论 451 浏览 评分:10.0
c语言代码,最长公共子序列 摘要:关于最长公共子序列讲解的相关链接,因为我自己讲不明白 [https://blog.csdn.net/hrn1216/article/details/51534607](https://blog.cs…… 题解列表 2024年08月11日 0 点赞 0 评论 455 浏览 评分:9.9
C语言训练-列出最简真分数序列* 摘要:解题思路:最大公约数为1注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int gcd(int a, int …… 题解列表 2024年08月11日 0 点赞 0 评论 181 浏览 评分:0.0
C语言训练-亲密数 摘要:解题思路: 哈希注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const int N = 3e3 + 10;…… 题解列表 2024年08月11日 0 点赞 0 评论 317 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:解题思路:注意事项:参考代码:n = int(input().strip())l = list(map(int,input().strip().split()))l.sort()l0 = [1,2,3…… 题解列表 2024年08月11日 2 点赞 0 评论 1342 浏览 评分:8.0
1118: Tom数 C++ 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long n; while(cin >>…… 题解列表 2024年08月11日 0 点赞 0 评论 257 浏览 评分:0.0
3221: 蓝桥杯2024年第十五届省赛真题-数字诗意 摘要:解题思路:注意事项:参考代码:n = int(input().strip())l = list(map(int,input().strip().split()))c = 0for i in l: …… 题解列表 2024年08月11日 2 点赞 0 评论 1524 浏览 评分:2.0
K-进制数 DP 摘要:解题思路:DP注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; long long f[N]; …… 题解列表 2024年08月11日 1 点赞 0 评论 215 浏览 评分:0.0
1117: K-进制数-递归求解 摘要:解题思路: 认真看题,找规律,可以发现该题目可以通过递归求解:n=1时,[1-9]n=2时,9*[0-9]n=3时,9*{n-1的}+9*{n-2的}依次类推……参考代码:n = int(inp…… 题解列表 2024年08月11日 0 点赞 0 评论 321 浏览 评分:0.0