弟弟的作业(纯C++代码,不使用scanf) 摘要:解题思路:用while循环读取输入的算式,直到读取到空行,查找并记录运算符‘+’或者‘-’以及‘=’在字符串s中的位置,通过这两个位置,对字符串进行切片操作,最后进行判断。注意事项: 运用到了#inc…… 题解列表 2024年08月11日 2 点赞 0 评论 863 浏览 评分:10.0
c语言代码,最长公共子序列 关于最长公共子序列讲解的相关链接,因为我自己讲不明白[https://blog.csdn.net/hrn1216/article/details/51534607](https://blog.csdn.net/hrn1216/article/details/51534607)其他没有什么的了, 题解列表 2024年08月11日 1 点赞 0 评论 891 浏览 评分:9.9
C语言训练-列出最简真分数序列* 摘要:解题思路:最大公约数为1注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int gcd(int a, int …… 题解列表 2024年08月11日 0 点赞 0 评论 515 浏览 评分:0.0
C语言训练-亲密数 摘要:解题思路: 哈希注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const int N = 3e3 + 10;…… 题解列表 2024年08月11日 0 点赞 0 评论 720 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-封闭图形个数 解题思路:注意事项:参考代码:n=int(input().strip())l=list(map(int,input().strip().split()))l.sort()l0=[1,2,3,5,7]l1=[0,4,6,9]l2=[8]t=[]defcount(x):c=0whilex>0:t=x%10 题解列表 2024年08月11日 2 点赞 0 评论 1820 浏览 评分:8.0
1118: Tom数 C++ 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long n; while(cin >>…… 题解列表 2024年08月11日 0 点赞 0 评论 596 浏览 评分: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 评论 2003 浏览 评分:2.0
K-进制数 DP 摘要:解题思路:DP注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; long long f[N]; …… 题解列表 2024年08月11日 1 点赞 0 评论 520 浏览 评分: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 评论 725 浏览 评分:0.0
IP地址-python-正则表达式 摘要:解题思路:正则表达式区间0-9 \d 10-99 [1-9]\d 100-199 1\d{2} 200-249 2[0-4]\d …… 题解列表 2024年08月11日 0 点赞 0 评论 666 浏览 评分:0.0