题解列表

筛选

1169: 绝对值排序

摘要:解题思路:利用冒泡法进行排序注意事项:while循环时一定要记得设置输入的数不为0参考代码:#include <stdio.h>#include <stdlib.h> int main(){    i……

成绩评定 题解(c++暴力简单)

摘要:解题思路:不就是暴力判断嘛!还不会!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d……

c++格子刷油漆

摘要:解题思路:https://www.freesion.com/article/4385447958/参考代码:#include<iostream> using namespace std; int ……

对矩阵二维数组还是不是很熟悉啊

摘要:解题思路:注意事项:折腾了这么久,不懈题解对不起自己看时间一道题也高了快一个小时了参考代码:##while True:##    n=int(input())##    lh=[]##    for ……

信息学奥赛一本通T1598-最大连续和-题解(各语言代码)

题意为求区间和的最大值可分为两步解决:第一步求区间和,第二步求区间最大值区间求和最高效的方式是前缀和,而区间最值可以用单调队列解决时间复杂度O(n),空间复杂度O(m)**C++**```cpp#include#includeusingnamespacestd;intmain(){ios::sync_

思维题-解谜游戏

分为四组,组内互换组间不能互换,因此每组每种颜色数量必为1/4```cpp//外圈:123|456|789|101112//中圈:12|34|56|78//内圈:1|2|3|4#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;int