buihoatpt1874's blog

By buihoatpt1874, history, 5 years ago, In English

Hello Codeforces community ! Recently I found out that I am very weak at problems that require quick and precise observation, like 1330D, like I always solve these kinds of problem way to slow or unable to solve them at all. Can you please suggest problems like that ? I know there is tags in problemset, but I believe good problems recommended by people who solved them will be more beneficial for me and other people aswell. Thanks in advance.

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it

By buihoatpt1874, history, 5 years ago, In English

Problem statement

I can see that processing the segments from high to low and using segment tree to update the segment currently covering an interval l, r is necessary to solve this problem. However, i couldn't think of a way to update the segment currently covering l, r as there can be multiple segments that were covering it. Can someone please help ?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it