[信息学奥赛一本通T1545-Balanced Lineup] RMQ 摘要:## 解题思路 1. **分析问题**:他让我们找出一个区间里的最大最小值然后相减,中途没有修改操作,可以用两个ST表维护一个最大值,最小值,查询时相减就行. 2. **确定算法**:ST表 …… 题解列表 2024年10月22日 1 点赞 0 评论 181 浏览 评分:9.9
逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n;while(~scanf("%d",&n)){ int a=1,i,j,sum; for(i=1;i…… 题解列表 2024年10月23日 0 点赞 0 评论 400 浏览 评分:9.9
逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[10]={0},a,i,b=0; for(i=0;i<10;i++) { scanf("%d"…… 题解列表 2024年10月23日 0 点赞 0 评论 360 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;double fact(int k){ double m =…… 题解列表 2024年10月23日 0 点赞 0 评论 384 浏览 评分:0.0
1004: [递归]母牛的故事(python) 摘要:#### ~~~python m = [0]*55 m[1] = 1 m[2] = 2 m[3] = 3 m[4] = 4 def f(n): if n…… 题解列表 2024年10月23日 0 点赞 0 评论 705 浏览 评分:9.9
电池的寿命mmmmmmm 摘要:解题思路:见课本参考代码:#include<cstdio> #include<iostream> #include<algorithm> using namespace std; int …… 题解列表 2024年10月23日 0 点赞 0 评论 235 浏览 评分:9.9
编写题解 1282: 公交汽车 摘要:解题思路:注意事项:参考代码:l = list(map(int,input().strip().split()))n = int(input())dp = [0 for i in range(n)]d…… 题解列表 2024年10月23日 0 点赞 0 评论 167 浏览 评分:0.0
利用TreeSet特点解决 摘要:解题思路:利用TreeSet的可排序、不重复的特点进行去重、排序注意事项:参考代码:import java.util.Scanner; import java.util.TreeSet; pu…… 题解列表 2024年10月23日 0 点赞 0 评论 171 浏览 评分:0.0
最原始的方法 因为我只学到这 摘要:解题思路: 最原始的方法 肯定都看得懂注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(1<=(a/10000)&&(a…… 题解列表 2024年10月23日 3 点赞 0 评论 312 浏览 评分:10.0
1444: 蓝桥杯2014年第五届真题-斐波那契(python) 摘要: ### A矩阵分解示例 ![](/image_editor_upload/2…… 题解列表 2024年10月23日 1 点赞 0 评论 278 浏览 评分:10.0