shevlopmes's blog

By shevlopmes, history, 3 days ago,

Hi Codeforces,

We saw an unusual amount of hacks today. Specifically, there were a lot of hacks on problem B, I did one myself. The submission I hacked looked like this

Spoiler

As you can see, it's a completely valid solution except there are 2 unnecessary if statements which made it hackable. That made me think of 2 things: why there wasn't any 10-digit number in pretests and why the contestant wrote that "if"?

But after the contest I saw a list of hacks and, to my surprise, there were A LOT of hacks on similar submissions. So my hypothesis is that one of the authors intentionally spread an incorrect solution in some cheating community and removed all 10digit numbers from pretests. If that's true, I pay my respect

• +394

 » 3 days ago, # |   +211 there was an intentionally wrong solution uploaded by youtube that we were aware of during contest, but we have no idea who posted it. we wouldn't spread a solution online even if it would eventually WA from hacks and FST.as for the pretests, during preparation we saw no reason to have 10 digit numbers in it (there isn't a solution that would work for 10 digit numbers but not for 18 digit numbers — solution doesn't depend on number of digits save maybe small 1-3 digit numbers)
•  » » 3 days ago, # ^ |   +2 .ComplaintFrame { display: inline-block; position: absolute; top: 0; right: -1.4em; } .ComplaintFrame a { text-decoration: none; color: #ff8c00; opacity: 0.5; } .ComplaintFrame a:hover { opacity: 1; } ._ComplaintFrame_popup p, ._ComplaintFrame_popup button { margin-top: 1rem; } ._ComplaintFrame_popup input[type=submit] { padding: 0.25rem 2rem; } ._ComplaintFrame_popup ul { margin-top: 1em !important; margin-bottom: 1em !important; } so I hope, you are going to use this fact, to catch cheaters this timebecause, cheating is at it's peak these days.||Please say Yes||
 » 3 days ago, # |   +207 To whoever spread the WA solution: if you're ever lonely or sad, remember that I will always love you. You have my respect.
•  » » 3 days ago, # ^ | ← Rev. 2 →   +13 I second this; we need more like him!
 » 3 days ago, # |   +57 total_sum = 35 feels super suspect, by just glancing at the code. But sz % 10 is really funny. I didn't even notice it at first, i thought it was just that other condition.
•  » » 3 days ago, # ^ |   +32 I looked through some of the other solutions that failed system test, and it looks like 35 comes from adding up all 'large digits' (5 to 9), and some people just calculated it themselves (like how arr exists but isn't actually used in that code). It's still suspicious, though.What makes me scared is that some of them even solved up to problem D and they would've been above my rank if these solutions didn't fail. If this kind of thing has happened casually, I just can't imagine how many ranks I've been losing just because I've always participated in contests conscientiously.
•  » » » 3 days ago, # ^ |   +95 Given the unused variable and seemingly random checks, could this solution be the output of ChatGPT or a similar tool?
•  » » » » 3 days ago, # ^ |   +3 not the exact output in my opinion, but chatgpt may be used to edit the code and make it weird, but it's a common act of cheaters to spam add function + random variables + random conditions, this causes the plag checker which uses AST to check the similarity of codes executing not be able to identify it since because e.g. in a loop they updated 10 variables which just makes the checker not be able to identify it
 » 3 days ago, # | ← Rev. 2 →   +78 What's even more ridiculous is 264905546, a similar code. Can you find out what's the difference?if (s.find(small) != string::npos && s.find(large) != string::npos) {cout << "N0" << endl;return;} Yes, it's N0.
•  » » 3 days ago, # ^ |   -17 Not Only this.. There are many similar ones..
•  » » » 3 days ago, # ^ |   +9 I'm sorry, but it seems thatnone of these codes have N0 instead of NO.
•  » » » » 3 days ago, # ^ |   -17 Oh!! Sorry I misunderstood..
•  » » 3 days ago, # ^ |   0 That's hilarious)
 » 3 days ago, # |   +2 huge respect for authors /\
 » 3 days ago, # |   +4 I respect this behaviour but, is there a possibility that, somebody would read the code and recognize the solution, and then implement the solution completely on his own way to escape plag check?
•  » » 3 days ago, # ^ |   0 i dont think plag check is working anymore , they convert the code into another language , even they discard the function from code and mix with main code by chatgpt .
•  » » 3 days ago, # ^ |   +42 If it caught 95% cheaters and helped 5% to solve problem B, it's a reasonable compromise.
 » 3 days ago, # |   +1 Cheaters are so dumb that they do not even read the code and copy and paste it.I hacked a solution of Saumy_1, by a simple test case of 1567890.
 » 3 days ago, # |   -29 if someone got fst on problem B, it doesn't means he cheated for sure
 » 3 days ago, # | ← Rev. 4 →   +9 Genius idea. orz
 » 3 days ago, # |   -21 There was a similar leetcode question. ig people just copied that solution here hence many got wrong