题解列表
1169: 绝对值排序
摘要:解题思路:利用冒泡法进行排序注意事项:while循环时一定要记得设置输入的数不为0参考代码:#include <stdio.h>#include <stdlib.h> int main(){ i……
蓝桥杯算法提高VIP-计算质因子
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool isprime(int x) { //判断质数 for(int i ……
蓝桥杯算法提高VIP-输出九九乘法表
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<" Nine-by-nine Multipli……
蓝桥杯算法提高VIP-输出正反三角形
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int a, b; cin >> a >>……
题解 1681: 数据结构-行编辑程序 stack
摘要:#include<iostream>
#include<stack>
#include<string>
using namespace std;
int main()
{
stri……
对矩阵二维数组还是不是很熟悉啊
摘要:解题思路:注意事项:折腾了这么久,不懈题解对不起自己看时间一道题也高了快一个小时了参考代码:##while True:## n=int(input())## lh=[]## for ……
信息学奥赛一本通T1598-最大连续和-题解(各语言代码)
摘要:题意为求区间和的最大值
可分为两步解决:第一步求区间和,第二步求区间最大值
区间求和最高效的方式是前缀和,而区间最值可以用单调队列解决
时间复杂度O(n),空间复杂度O(m)
**C++**
……