海绵的博客

竞赛虐我千百遍,我待竞赛如初恋。 Never Give Up!!!

排序:
默认
按更新时间
按访问量

A Simple Problem with Integers (叶子节点 循环节)

链接:https://www.nowcoder.com/acm/contest/163/H 来源:牛客网   题目描述 You have N integers A1, A2, ... , AN. You are asked to write a program to receive and e...

2018-08-06 21:19:28

阅读数:21

评论数:0

Naive Operations(区间更新+点更新)

  Problem Description In a galaxy far, far away, there are two integer sequence a and b of length n. b is a static permutation of 1 to n. Initially...

2018-07-26 19:52:00

阅读数:50

评论数:0

F - Calculate the Function ZOJ - 3772

You are given a list of numbers A1 A2 .. AN and M queries. For the i-th query: The query has two parameters Li and Ri.The query wil...

2018-04-30 17:00:21

阅读数:20

评论数:0

Factory Repairs CodeForces - 635D (点更新,区间查询)

A factory produces thimbles in bulk. Typically, it can produce up to a thimbles a day. However, some of the machinery is defective, so it can curren...

2018-04-06 21:59:07

阅读数:37

评论数:0

New Year Tree CodeForces - 620E

http://codeforces.com/problemset/problem/620/E The New Year holidays are over, but Resha doesn't want to throw away the New Year tree. He invited his...

2018-03-14 22:05:29

阅读数:34

评论数:0

A Simple Problem with Integers(区间更新,区间查询)***

点击打开链接DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given num...

2018-02-24 12:46:49

阅读数:18

评论数:0

HDU - 2795 Billboard(点更新 点查询)

点击打开链接Problem DescriptionAt the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). T...

2018-02-22 12:08:20

阅读数:45

评论数:0

Tunnel Warfare (区间合并)

During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, vi...

2017-08-11 09:53:43

阅读数:89

评论数:0

POJ 2528 Mayor's posters( 线段树+离散化)

The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all p...

2017-08-11 09:32:46

阅读数:93

评论数:0

Assign the task

There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole comp...

2017-08-10 09:48:26

阅读数:84

评论数:0

Can you answer these queries?(点更新,区间查询)

A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. E...

2017-08-10 09:45:42

阅读数:125

评论数:0

Color the ball(区间更新,点查询)

N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出每个...

2017-08-09 09:43:40

阅读数:87

评论数:0

Just a Hook (区间更新,lazy标记)

In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metalli...

2017-08-09 09:39:29

阅读数:76

评论数:0

hdu1754 IHateIt (线段树点更新,区间查询)

很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请处理到文件结束...

2017-08-08 09:50:16

阅读数:89

评论数:0

HDU1166:敌兵布阵(线段树点更新,区间查询)

C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发...

2017-08-08 09:47:19

阅读数:81

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭