随笔分类 - 线段树
摘要:动态最值(minmax.Cpp/c/java)(空间限制128M)有一个包含n个元素的数组,要求实现以下操作:DELETE k:删除位置k上的数。右边的数往左移一个位置。QUERY i j:查询位置i~j上所有数的最小值和最大值。【输入】(minmax.in)输入第一行包含两个数n, m,表示原始数...
阅读全文
摘要:lazy标记 Time Limit:5000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u Submit Status DescriptionYou have N integers, A1, A2, ... , AN. You need ...
阅读全文
摘要:Curious Robin HoodTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1112 DescriptionRobin Hood likes t...
阅读全文
摘要:BillboardTime Limit:8000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionAt the entrance to the university, there is a huge...
阅读全文
摘要:Buy TicketsTime Limit: 4000MS Memory Limit: 65536K Total Submissions: 12734 Accepted: 6292 DescriptionRailway tickets were difficult to buy around the...
阅读全文
摘要:敌兵布阵Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41852 Accepted Submission(s): 17722Problem De...
阅读全文
摘要:基础Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescription很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜...
阅读全文
摘要:基础Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status DescriptionFor the daily milking, Farmer John's N cows (1 ≤ N ≤ 5...
阅读全文
摘要:StarsTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 31671 Accepted: 13810 DescriptionAstronomers often examine star maps where stars are r...
阅读全文