Truba's blog

By Truba, history, 8 years ago, In English

Hi There! I am stuck on this problem. Can you give me some hints?

My #code gives WA#2.

Trying to solve with dynamic programming and binary searching the answer. Thanks!

Upd: You can check the correctness Here.

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it

By Truba, 10 years ago, translation, In English

Hello Codeforces Users! Today I started to solve problem for Interval Tree and found problems called "Can you answer these queries". But I solved only First and Third but hard to solve second one. I understand the statements, but I can't solve them. Searched on Google and found MinakoKojima s blog but i don't unserstand, because blog in chinese. Help me to solve this problem please!

Full text and comments »

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