随笔分类 -  数据结构:线段树

摘要:DZY Loves Topological Sorting Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1250 Accepted Sub 阅读全文
posted @ 2018-04-14 19:51 冥想选手 阅读(148) 评论(0) 推荐(0)
摘要:D. The Child and Sequence time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output D. The Child a 阅读全文
posted @ 2018-04-13 22:08 冥想选手 阅读(231) 评论(0) 推荐(0)
摘要:An easy problem Time Limit: 8000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2770 Accepted Submission(s): 1034 阅读全文
posted @ 2018-04-13 20:50 冥想选手 阅读(175) 评论(0) 推荐(0)
摘要:LCIS Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8337 Accepted Submission(s): 3566 Problem De 阅读全文
posted @ 2018-04-03 18:47 冥想选手 阅读(219) 评论(0) 推荐(0)
摘要:There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i 阅读全文
posted @ 2018-03-27 21:29 冥想选手 阅读(289) 评论(0) 推荐(0)
摘要:poj3667 HotelTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 18925 Accepted: 8242Description The cows are journeying north to Thunder Bay in 阅读全文
posted @ 2018-03-19 21:17 冥想选手 阅读(202) 评论(0) 推荐(0)
摘要:Mayor's posters Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 51098 Accepted: 14788 Description The citizens of Bytetown, AB, could not s 阅读全文
posted @ 2018-03-17 16:22 冥想选手 阅读(154) 评论(0) 推荐(0)
摘要:Buy Tickets Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 22097 Accepted: 10834 Description Railway tickets were difficult to buy around 阅读全文
posted @ 2018-03-16 20:53 冥想选手 阅读(157) 评论(0) 推荐(0)
摘要:1798: [Ahoi2009]Seq 维护序列seq Description 老师交给小可可一个维护数列的任务,现在小可可希望你来帮他完成。 有长为N的数列,不妨设为a1,a2,…,aN 。有如下三种操作形式: (1)把数列中的一段数全部乘一个值; (2)把数列中的一段数全部加一个值; (3)询问 阅读全文
posted @ 2018-03-15 22:18 冥想选手 阅读(176) 评论(0) 推荐(0)
摘要:【codevs1690】开关灯 2014年2月15日4930 题目描述 Description YYX家门前的街上有N(2<=N<=100000)盏路灯,在晚上六点之前,这些路灯全是关着的,六点之后,会有M(2<=m<=100000)个人陆续按下开关,这些开关可以改变从第i盏灯到第j盏灯的状态,现在 阅读全文
posted @ 2018-03-14 22:01 冥想选手 阅读(198) 评论(0) 推荐(0)
摘要:【codevs1191】数轴染色 题目描述 Description 在一条数轴上有N个点,分别是1~N。一开始所有的点都被染成黑色。接着我们进行M次操作,第i次操作将[Li,Ri]这些点染成白色。请输出每个操作执行后剩余黑色点的个数。 输入描述 Input Description 输入一行为N和M。 阅读全文
posted @ 2018-03-14 21:35 冥想选手 阅读(144) 评论(0) 推荐(0)
摘要:题目描述 Description 给你N个数,有两种操作: 1:给区间[a,b]的所有数增加X 2:询问区间[a,b]的数的和。 题目描述 Description 给你N个数,有两种操作: 1:给区间[a,b]的所有数增加X 2:询问区间[a,b]的数的和。 给你N个数,有两种操作: 1:给区间[a 阅读全文
posted @ 2018-03-13 22:18 冥想选手 阅读(151) 评论(0) 推荐(0)
摘要:【Tyvj1038】忠诚 线段树 题目描述 老管家是一个聪明能干的人。他为财主工作了整整10年,财主为了让自已账目更加清楚。要求管家每天记k次账,由于管家聪明能干,因而管家总是让财主十分满意。但是由于一些人的挑拨,财主还是对管家产生了怀疑。于是他决定用一种特别的方法来判断管家的忠诚,他把每次的账目按 阅读全文
posted @ 2018-03-13 21:11 冥想选手 阅读(138) 评论(0) 推荐(0)
摘要:A. Alex and broken contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Alex 阅读全文
posted @ 2018-02-08 16:13 冥想选手 阅读(346) 评论(0) 推荐(0)
摘要:Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36705 Accepted Submission(s): 17920 P 阅读全文
posted @ 2017-12-20 20:04 冥想选手 阅读(211) 评论(0) 推荐(1)
摘要:Minimum Inversion Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21957 Accepted Submissio 阅读全文
posted @ 2017-11-15 19:35 冥想选手 阅读(153) 评论(0) 推荐(0)
摘要:Mr. Cui is working off-campus and he misses his girl friend very much. After a whole night tossing and turning, he decides to get to his girl friend's 阅读全文
posted @ 2017-10-25 21:34 冥想选手 阅读(228) 评论(0) 推荐(0)
摘要:描述 You are given a list of integers a0, a1, …, a2^k-1. You need to support two types of queries: 1. Output Minx,y∈[l,r] {ax∙ay}. 2. Let ax=y. 输入 The f 阅读全文
posted @ 2017-09-23 20:16 冥想选手 阅读(269) 评论(0) 推荐(0)
摘要:Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is 阅读全文
posted @ 2017-09-15 20:45 冥想选手 阅读(359) 评论(1) 推荐(1)
摘要:I Hate It 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input本题目包含多组测试,请处理到文件结束。  阅读全文
posted @ 2017-05-08 12:58 冥想选手 阅读(144) 评论(0) 推荐(0)