![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树&&树状数组
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
G - A Simple Problem with Integers POJ - 3468
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the原创 2017-09-07 22:48:58 · 233 阅读 · 0 评论 -
F - Just a Hook HDU - 1698
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length.原创 2017-09-08 13:41:28 · 255 阅读 · 0 评论 -
HDU 1754 I Hate It
I Hate It Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 97400 Accepted Submission(s): 36773 Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询...原创 2018-07-25 21:59:39 · 502 阅读 · 0 评论 -
牛客第一场 Different Integers
链接:https://www.nowcoder.com/acm/contest/139/J 来源:牛客网 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 题目描述 Given a sequence of integers a1, a2, ..., an and q pairs of in...原创 2018-08-07 09:55:07 · 139 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)farm
链接:https://www.nowcoder.com/acm/contest/140/J 来源:牛客网 时间限制:C/C++ 4秒,其他语言8秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 White Rabbit has a rectangular farmland of n*m. In each of the ...原创 2018-08-08 20:51:20 · 268 阅读 · 0 评论 -
HDU 1166 敌兵布阵
敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 121928 Accepted Submission(s): 51000 Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国...原创 2018-08-08 22:03:05 · 129 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场)take
链接:https://www.nowcoder.com/acm/contest/143/F 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 Kanade has n boxes , the i-th box has p[i] probability to have ...原创 2018-08-21 17:54:03 · 187 阅读 · 0 评论 -
ACM-ICPC 2018 徐州赛区网络预赛 H. Ryuji doesn't want to study
Ryuji is not a good student, and he doesn't want to study. But there are n books he should learn, each book has its knowledge a[i]a[i]. Unfortunately, the longer he learns, the fewer he gets. That m...原创 2018-09-10 20:33:46 · 188 阅读 · 0 评论