JasonMendoza2008's blog

By JasonMendoza2008, history, 3 days ago, In English

I asked to get hacked because the tests of the last contest were weak and my O(n*10^6) solution had passed (https://mirror.codeforces.com/contest/1989/submission/267752822). Someone nicely hacked it (https://mirror.codeforces.com/contest/1989/hacks/1052821) — really appreciate the community btw.

I fixed the code and now it's (10^6 * log(n)) (https://mirror.codeforces.com/contest/1989/submission/267775979). To be sure I fixed the code I would LOVE to re-run that test case that got me TLE but I'm not going to ask this person again and again to hack my submissions just to make sure I managed to improve my solution.

How can I reproduce the hack? Why aren't hacks added to the test cases automatically? I thought that was the case but I think it's just for the contests with open hacks.

EDIT: well the person gave me the code to generate the hack so that's nice I don't need it anymore but it would be nice to have the possibility to get the code right?

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by JasonMendoza2008 (previous revision, new revision, compare).

»
2 days ago, # |
  Vote: I like it +6 Vote: I do not like it

You can do it after preliminary hack ends.

»
2 days ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

I can see hacks info for old contests.. For example previous educ: https://mirror.codeforces.com/contest/1976/hacks ("View test" button)

Not sure on what that does depend

EDIT: ah yeah, as person above pointed out, the hacking phase is not finished yet