Блог пользователя heysem

Автор heysem, история, 4 года назад, По-английски

Hey there Codeforces!

I was trying to solve the C problem in Codeforces Testing Round #1.

I knew that so many people solved it using binary tree but I wanted to try another aproach. I tried to solve it using SQRT Decomposition. I've got so many wrong answers and altough I've worked on it for like 2 days I couldn't fix the problem. Can you please help me about that?

My code is this.

If you find any bugs or if you have any suggestions I would appreciate it.

Thank you already!

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится -27 Проголосовать: не нравится

Dude,you r trying to solve 2200 rating problem?I mean how in the world?No wonder you get so many WA.You didn't even reach cyan or blue. Pardon me if it's not your real account or you are different than most of us.

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +9 Проголосовать: не нравится

    Bruh, in an online national camp which excludes IOIers, we are solving a lot of problems from range 2000-2500. In that camp, people's ratings range from grey to purple so it is really okay to solve a problem which is a lot larger than your rating. In IOI camp, there was a problem which was 2900. Does that mean we are not allowed to know its solution or think about its solution? For sure no. Also, this 2200 problem is a fake 2200 as it was in a testing round. I would give it meh, 1800 or maybe less as it is a standard problem.

»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Problem solved! It appears to be a bug with circular situations.