1052: [编程入门]链表合并 摘要:解题思路:先合并,再排序注意事项:参考代码:#include <stdio.h>#include<string.h>#include<malloc.h>#define MaxSize 100typed…… 题解列表 2023年03月19日 0 点赞 0 评论 323 浏览 评分:0.0
十进制转二进制 摘要:小白,有好的方法请留言交流 ```c #include int main() { int s[100]; //用来存放二进制数 int n; //…… 题解列表 2023年03月19日 0 点赞 0 评论 469 浏览 评分:0.0
遍历所有元素的最长上升、下降子序列,取最长的 摘要:题目已经说了,任一点起飞,我们就得把全部点都遍历一次,所以外面套上循环,0-n 把所有节点的最长上升、下降加入集合,最后排序取最大的,你也可以用一个变量一直维持最大的,我嫌麻烦没怎么做。 i…… 题解列表 2023年03月20日 0 点赞 0 评论 760 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int isHui(int n) { int m=0,tmp=n; wh…… 题解列表 2023年03月20日 0 点赞 0 评论 334 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e,y; scanf("%5d",&x); a=x/10000; …… 题解列表 2023年03月20日 0 点赞 0 评论 407 浏览 评分:0.0
python dfs爆搜 简单理解 摘要:解题思路:一号操作,二号操作都实行通过搜索找到最大值,但是二号操作变不到9就不要用了注意事项:参考代码:n,a,b=map(int,input().split())n=list(str(n))s=[]…… 题解列表 2023年03月20日 0 点赞 0 评论 821 浏览 评分:0.0
vector解决报数问题 摘要:解题思路: vector添加和删减元素 形成循环队列注意事项:参考代码:#include<iostream>#include<vector>using namespace std;int main()…… 题解列表 2023年03月20日 0 点赞 0 评论 381 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main(){ int i,n; char a[n]; gets(a); …… 题解列表 2023年03月20日 0 点赞 0 评论 442 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:设置d=b*b-4*a*c注意事项:d<0时,x1、x2转换的数值类型参考代码:def g(a,b,c): d=b*b-4*a*c if d >0: x1 = (…… 题解列表 2023年03月20日 0 点赞 0 评论 367 浏览 评分:0.0