题解列表
自定义函数之数字后移
摘要:解题思路:数据存放在mylist容器中,要后移n位,就先将mylist的后n位逆序放置在mylists中,然后删除mylist的后n项,最后将mylists与mylist合并即可。注意事项:参考代码:……
冒泡排序和选择排序(基础)
摘要:冒泡排序:
```cpp
#include
using namespace std;
int main()
{
int a[4],t;
for(int i=0;i>a[i……
报数问题——数据结构(循环链表)
摘要:解题思路:定义有头结点的循环链表,输入数据时用头插法建立递增的链表。DeleteLNode()函数删除指定结点,并返回删除的结点的下一个结点。定义outnum()函数依次找出报数为3的人,每找到一个报……
超简单c++思路清晰
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int a[201][201];
int b[41000];
int v……
1429: 蓝桥杯2014年第五届真题-兰顿蚂蚁
摘要:
#include
#include
using namespace std;
int mapp[105][015];
int v[4][2]={{-1,0},{0,1},{1,0……
编写题解 1544: 蓝桥杯算法提高VIP-特殊的质数肋骨
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
//判断素数这里需要检查的范围为,2~sqrt(n)
bool ju……
优质题解
拦截导弹,贪心+二分的nlogn做法
摘要:解题思路:lower_bound( )和upper_bound( )都是利用二分查找的方法在一个排好序的数组中进行查找的。1、在从小到大的排序数组中,lower_bound( begin,end,nu……