demitronization's blog

By demitronization, history, 5 months ago, In English

I was going through yesterday's hacks and I found some weird stuff :

For Problem A there was a hack made by adityakr619 on Justadi698

Link Here https://mirror.codeforces.com/contest/1976/hacks/1027807

they literally had hardcoded a case which might not be in testcases to be hacked???

 Link Here

as according to the problem this should return a NO

Also in the same contest we had this

Here

Literally all A hacks were similar, Educational rounds don't carry points for hacking right?

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

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

There were so many such hacks in today's contest. Linking up another example here :- https://mirror.codeforces.com/contest/1976/submission/263366548

  • »
    »
    5 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Also you may notice that the codes of your second example and this example are completely the same. Despite both the hacker and the person being hacked being different.

    • »
      »
      »
      5 months ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      true even i noticed that there were several codes that were exactly the same that too of expert in the status section.

      for example : This and This

»
5 months ago, # |
  Vote: I like it +7 Vote: I do not like it

People try to familiarize themselves with hacking I guess. They want to really test it out + you can hack submissions made after the contest. So to really test it out they submit such solutions and then hack them. To get an idea of how generating test cases or putting input works.
When I first tried hacking solutions (I still haven't made a successful hack), there were loads of issues with spaces in inputs, end of line etc.
I personally do not condemn this exercise unless done with malintent.

  • »
    »
    5 months ago, # ^ |
    Rev. 2   Vote: I like it +3 Vote: I do not like it

    That does make sense, though losing viable points for learning hacking doesn't seem fine, as the first one I mentioned happened b/w the contest.