rmz's blog

By rmz, history, 7 days ago, In English

After staring at my code for nearly 1 hour, and even comparing my code to someone's else i still couldn't know why my code gives wrong answer for some testcases, is it the way I'm taking the mod ?

UPD: Its actually 2 hours

Full text and comments »

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

By rmz, history, 5 weeks ago, In English

I'm not able to hack someone from yesterday's Div 3. Because of the hack file size (300 kb) and the limit is (256 kb), while it's a valid test case.

I tried copy pasting it, but it didn't work.

MikeMirzayanov FBI

Full text and comments »

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

By rmz, history, 8 months ago, In English

In this problem I made a dp solution that gets MLE.

Then i added this piece of code.

    for (int i = 1 ; i < n ; i++){
        depee(i,0);
    }

Surprisingly, it worked and i got AC.

can you explain what happened?

Full text and comments »

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