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://codeforces.me/contest/1976/hacks/1027807
they literally had hardcoded a case which might not be in testcases to be hacked???
as according to the problem this should return a NO
Also in the same contest we had this
Literally all A hacks were similar, Educational rounds don't carry points for hacking right?
There were so many such hacks in today's contest. Linking up another example here :- https://codeforces.me/contest/1976/submission/263366548
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.
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
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.
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.