区间颜色不一致就更新到底,否则lazy标记
#include
#include
#include
#include
using namespace std;
#define lc l,m,index<<1
#define rc m+1,r,index<<1|1
#define N 100005
#define ll __int64
struct node
{
bool same;
ll c...
分类:
其他好文 时间:
2014-07-08 18:00:56
阅读次数:
226
最长回文
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7317 Accepted Submission(s): 2500
Problem Description
给出一个只由小写英文字符a,b,c...y,z组成...
分类:
其他好文 时间:
2014-07-08 15:24:02
阅读次数:
195
Advanced Fruits
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1944
Accepted: 967
Special Judge
Description
The company "21st Century Fruits" has spec...
分类:
其他好文 时间:
2014-07-06 10:23:04
阅读次数:
166
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 31093
Accepted: 12974
Description
Given two strings a and b we define a*b to be their concate...
分类:
其他好文 时间:
2014-07-06 00:33:22
阅读次数:
253
覆盖的面积
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3375 Accepted Submission(s): 1645
Problem Description
给定平面上若干矩形,求出被这些矩形覆盖过至少两...
分类:
其他好文 时间:
2014-07-02 09:11:55
阅读次数:
190
Picture
Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2578 Accepted Submission(s): 1363
Problem Description
A number of rectangul...
分类:
其他好文 时间:
2014-07-02 08:22:20
阅读次数:
388
Atlantis
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6386 Accepted Submission(s): 2814
Problem Description
There are several anc...
分类:
其他好文 时间:
2014-07-02 08:11:10
阅读次数:
263
Consecutive Blocks
Time Limit: 2 Seconds
Memory Limit: 65536 KB
There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to
N from left to right) which are lined up in a row. And the i-th b...
分类:
其他好文 时间:
2014-07-01 06:51:52
阅读次数:
218
Easy Finding
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 15668
Accepted: 4163
Description
Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i
Input
There ar...
分类:
其他好文 时间:
2014-06-30 08:35:45
阅读次数:
215
Sudoku
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8152
Accepted: 2862
Description
In the game of Sudoku, you are given a large 9 × 9 grid divided in...
分类:
其他好文 时间:
2014-06-29 22:07:32
阅读次数:
279