报数问题——数据结构(循环链表) 摘要:解题思路:定义有头结点的循环链表,输入数据时用头插法建立递增的链表。DeleteLNode()函数删除指定结点,并返回删除的结点的下一个结点。定义outnum()函数依次找出报数为3的人,每找到一个报…… 题解列表 2021年04月27日 0 点赞 0 评论 910 浏览 评分:9.9
超简单c++思路清晰 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[201][201]; int b[41000]; int v…… 题解列表 2021年04月26日 1 点赞 0 评论 714 浏览 评分:9.9
1429: 蓝桥杯2014年第五届真题-兰顿蚂蚁 摘要: #include #include using namespace std; int mapp[105][015]; int v[4][2]={{-1,0},{0,1},{1,0…… 题解列表 2021年04月25日 0 点赞 0 评论 741 浏览 评分:0.0
编写题解 1544: 蓝桥杯算法提高VIP-特殊的质数肋骨 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; //判断素数这里需要检查的范围为,2~sqrt(n) bool ju…… 题解列表 2021年04月24日 0 点赞 1 评论 869 浏览 评分:9.9
优质题解 拦截导弹,贪心+二分的nlogn做法 摘要:解题思路:lower_bound( )和upper_bound( )都是利用二分查找的方法在一个排好序的数组中进行查找的。1、在从小到大的排序数组中,lower_bound( begin,end,nu…… 题解列表 2021年04月23日 0 点赞 1 评论 1085 浏览 评分:9.6
[编程入门]斐波纳契数列-题解(C++代码)(新手上路请多多指教)【数组基础求法】 摘要:解题思路:找到逻辑关系,fib[i]=fib[i-1]+fib[i-2]注意事项:数组下标需要注意,还要声明出fib[0].fib[1].因为我们是根据fib[i]=fib[i-1]+fib[i-2]…… 题解列表 2021年04月23日 0 点赞 2 评论 1181 浏览 评分:9.9
写法简单思路清晰 摘要:#include<iostream>#include<algorithm>#include<string>using namespace std;int n;string str;void BEswa…… 题解列表 2021年04月21日 0 点赞 1 评论 1032 浏览 评分:9.9
三个数最大值(最优,不用数组) 摘要:解题思路:注意事项:参考代码:#inclde<iostream>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;if(a>b>c)//如果a…… 题解列表 2021年04月21日 0 点赞 0 评论 441 浏览 评分:6.0
输入输出练习之输出图案题解 摘要:解题思路: 输出形状为对称形状,所以可以利用中线来实现分割,中线左右两边的空格数是相等的,而且和行数成线性关系。所以,用两个for循环实现,改变行列数,能输出任意阶的类似的等腰三角形。参考代码:…… 题解列表 2021年04月21日 0 点赞 0 评论 1558 浏览 评分:9.9