NM_Mehedy's blog

By NM_Mehedy, history, 3 years ago, In English

To solve this problem, I used biteset. The size of the bitset should be at least $$$10^4$$$. I used $$$10$$$ so that it's easy to debug. At the end I forgot that the size of bitest should be changed and submitted this code.The Verdict should be Wrong Answer/ Run time error. But it got Accepted.

Does anyone know the reason behind this?

Full text and comments »

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

By NM_Mehedy, history, 4 years ago, In English

I solved this problem in CF #705. Screenshot-450

But it failed system testing showing Screenshot-451

TLE code

Accepted code after contest

If we compare this two submissions-

Screenshot-452

This is the only difference.

Definition of see(...) in my code

The main thing is I used cerr for debugging and it got TLE.

Can anyone explain Why did it happen?

Full text and comments »

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