![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前缀和
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
H 中位因数
链接:https://ac.nowcoder.com/acm/contest/5678/H来源:牛客网给出函数的定义如下:f(x)是所有能够整除 x 的数(包含 1 和 x )中的中位数向下取整的大小,g(x)=∑i=1xf(i)g(x)=\sum_{i = 1}^{x}{f(i)}g(x)=∑i=1xf(i)输入描述:输入包含多组数据,第一行为一个数字 T(1≤T≤10)T(1 \le T \le 10)T(1≤T≤10) ,表示测试数据组数。接下来是 T 组数据,每组数据为一.原创 2020-05-23 18:09:35 · 355 阅读 · 0 评论 -
C 序列卷积之和
给出一个长度为{n}n的数组{a_1,a_2,...,a_n}a1,a2,...,an,计算{\sum_{l=1}^n\sum_{r=l}^n\sum_{i=l}^r\sum_{j=i}^r}a_i*a_j∑l=1n∑r=ln∑i=lr∑j=irai∗aj{mod}mod{1e9+7}1e9+7并输出。输入描述:第一行一个整数{n}n。第二行{n}n个整数{a_1,a_2,...,a_n}a1,a2,...,an。输出描述:输出一行一个整数表示答案...原创 2020-05-23 13:03:15 · 428 阅读 · 0 评论 -
B. Nastya and Door
链接:https://codeforces.ml/contest/1341/problem/BOn February 14, Denis decided to give a Valentine to Nastya and did not come up with anything better than to draw a huge red heart on the door of the l...原创 2020-04-24 07:49:08 · 275 阅读 · 0 评论 -
C. Cow and Message
链接:https://codeforces.ml/contest/1307/problem/CBessie the cow has just intercepted a text that Farmer John sent to Burger Queen! However, Bessie is sure that there is a secret message hidden inside....原创 2020-02-18 12:54:43 · 852 阅读 · 0 评论 -
F 碎碎念
链接:https://ac.nowcoder.com/acm/contest/3006/F在ACM比赛里,除了CE以外都是有效的提交。每一个提交都会有其评测的结果,或是AC,或是RJ(Rejected,包含各种不通过的情况)。往往一个人上去提交的时候,总有一个队友会坐在边上等着结果。那个人,往往都是只读题不写题的云选手~牛牛战队里也有这样的云选手——牛能。当牛能看到有效提交得到了AC以后,...原创 2020-02-14 06:15:50 · 207 阅读 · 0 评论