线段树
文章平均质量分 82
chongjwl
这个作者很懒,什么都没留下…
展开
-
Transformation
Yuanfang is puzzled with the question below: There are n integers, a1, a2, …, an. The initial values of them are 0. There are four kinds of operations. Operation 1: Add c to each number between ax and ay inclusive. In other words, do transformation ak<—原创 2021-07-08 22:19:58 · 147 阅读 · 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 company).If you are the immediate boss of someone,that person is your subordinate, and all his subordinates are原创 2021-07-08 22:10:52 · 218 阅读 · 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, villages connected by tunnels lay in a line. Except the two at the ends, every village was directly connected原创 2021-07-06 10:32:06 · 104 阅读 · 0 评论