平均值最大牛栏

题目描述有n个牛栏,从左到右连续一排,编号为1~n, 每个牛栏有一个高度ai。现在BSNY想从中找连续的一些牛栏,牛栏个数至少为L,他想知道,平均高度最大是多少。     Read more
Axell's avatar
Axell Jan 07, 2019

求幂累加和

题目描述给定3个整数A,K,P,求 $ (A^1 + A^2 + … + A^K) mod P $ 的结果     Read more
Axell's avatar
Axell Jan 06, 2019

优先队列

优先队列的头文件 && 声明首先,你需要 #includ...     Read more
Axell's avatar
Axell Oct 29, 2018

bitset模板

构造方式//构造函数1 #include <iostream> #include <bitset>//必须引入该头文件 usi...     Read more
Axell's avatar
Axell Oct 20, 2018

初赛-2

计算机发展历程 计算机采用的电子器件为:第一代是电子管,第二代是晶体管,第三代是中小规模集成电路,第四代是大规模,超大规模集成电路。     Read more
Axell's avatar
Axell Sep 24, 2018

初赛-1

初赛易错的题目 #include <iostream> using namespace std; ...     Read more
Axell's avatar
Axell Sep 20, 2018

机器人搬重物

机器人搬重物题目详情 需...     Read more
Axell's avatar
Axell Sep 08, 2018

边表

边表储存边的表格,通常用于图论题中点较多,但边较少的情况     Read more
Axell's avatar
Axell Aug 26, 2018

快速幂

快速幂即求 \(x^m mod p\) 的值 (\(m>=10^8\)) , 此时常规运算会超出时间限制 二进制分解     Read more
Axell's avatar
Axell Aug 26, 2018

并查集

并查集用来确定点之间的关系 代码...     Read more
Axell's avatar
Axell Aug 25, 2018