![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
楚江枫
不忘初心,方得始终
展开
-
【POJ 2991 Crane】+ 线段树
Crane Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5894 Accepted: 1601 Special JudgeDescription ACM has bought a new crane (crane – jeřáb) . The crane consists of n segme原创 2016-11-11 23:52:27 · 379 阅读 · 0 评论 -
【POJ 2182 Lost Cows】+ 线段树
Lost Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11336 Accepted: 7301Description N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular displ原创 2016-11-15 22:53:00 · 546 阅读 · 0 评论 -
【Codeforces 768 B Code For 1】+ 简单线段树
B. Code For 1 time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Jon fought bravely to rescue the wildlings who were attacked by the white-wa原创 2017-02-24 20:07:10 · 431 阅读 · 0 评论 -
【CSU 1258 维护序列】+ 线段树
现在有一个N个整数组成的序列,这N个整数的标号分别为1, 2, …, N,对这个序列 一共进行两类操作:① 1 x y:表示将第x个和第y个(包括x、y)整数之间的所有整数的二进制的最低位的1变为0,如果某个整数的值为0,则不对这个整数做任何改变。② 2 x y :表示你需要回答第x个和第y个(包括x、y)整数之间的所有整数异或的结果。Input 输入包含多组测试数据。 对原创 2017-04-11 12:06:51 · 341 阅读 · 0 评论 -
【POJ 3468 A Simple Problem with Integers】 线段树
A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 115961 Accepted: 36028 Case Time Limit: 2000MS DescriptionYou have N integers, A1, A2, … , AN.原创 2017-08-11 21:31:40 · 319 阅读 · 0 评论 -
【HDU 6070 Dirt Ratio】 二分 & 线段树
Dirt RatioTime Limit: 18000/9000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 1275 Accepted Submission(s): 568 Special JudgeProblem Description In ACM/ICPC原创 2017-08-04 20:42:36 · 386 阅读 · 0 评论 -
【HDU 4027 Can you answer these queries?】+ 线段树
Can you answer these queries? Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 14091 Accepted Submission(s): 3274Problem Description A lot原创 2016-10-25 11:37:37 · 416 阅读 · 0 评论 -
【POJ 3264 Balanced Lineup】 线段树
Balanced Lineup Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 55577 Accepted: 26052 Case Time Limit: 2000MS DescriptionFor the daily milking, Farmer John’s N cows (1 ≤ N ≤原创 2017-08-12 10:55:16 · 249 阅读 · 0 评论