摘要:
A. Best Subsegment 题意 找 连续区间的平均值 满足最大情况下的最长长度 思路:就是看有几个连续的最大值 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn= 1e5+4; 4 int a[maxn]; 阅读全文
摘要:
A. Nastya Is Reading a Book 题意:书分为n个章节 给出连续的章节页码 给出当前页数 问有多少章没有看完 思路 :直接模拟即可 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=100+5; 阅读全文