编辑器 Editor Time Limit: 1Sec Memory Limit: 128 MB Sample Input 8I 2I -1I 1Q 3LDRQ 2 Sample Output 2 3 Hint The following diagram shows the status of se ...
分类:
其他好文 时间:
2019-07-15 21:17:31
阅读次数:
121
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2594 题目: Problem Description Homer: Marge, I just figured out a way to discover some of the talents we we ...
分类:
其他好文 时间:
2019-05-13 21:34:22
阅读次数:
137
Problem Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but ...
分类:
其他好文 时间:
2019-05-12 19:49:00
阅读次数:
91
C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生 ...
分类:
其他好文 时间:
2019-05-01 18:55:47
阅读次数:
123
题目链接:https://vjudge.net/problem/HDU-1166 题目大意: 略 分析: 线段树单点更新模板题。 代码如下: 1 #pragma GCC optimize("Ofast") 2 #include <bits/stdc++.h> 3 using namespace st ...
分类:
其他好文 时间:
2019-04-30 13:59:03
阅读次数:
129
主要是关于!=string::npos的用法和substr的用法 ...
分类:
其他好文 时间:
2019-04-20 00:19:01
阅读次数:
203
引入 树状数组用于求区间和,其修改和查询的复杂度都是$O(logn)$,非常好写,比较小巧。 几种基础用法,关于权值树状数组在另一篇博客。 单点修改,区间查询 区间和 HDU 1166 敌兵布阵 模版: c++ include define N 50005 using namespace std; ...
分类:
编程语言 时间:
2019-04-10 15:17:39
阅读次数:
116
版权声明:来自: 码代码的猿猿的AC之路 http://blog.csdn.net/ck_boss https://blog.csdn.net/u012797220/article/details/35236457 简单二分图匹配.... Card Game Cheater Time Limit: ...
分类:
其他好文 时间:
2019-03-25 19:13:24
阅读次数:
146
有个坑点,题目中的有序没说是降序还是升序! ...
分类:
其他好文 时间:
2019-03-23 22:34:50
阅读次数:
175
#include #include #include #include using namespace std; bool cmp(int a, int b) { return abs(a) > abs(b); } int main() { int n; while (cin >> n && n !... ...
分类:
编程语言 时间:
2019-03-23 22:24:34
阅读次数:
189