Intentional Bugs For Hacks?

Revision en1, by Filikec, 2024-08-14 04:07:27

Hi there, I've been looking at submissions for the latest DIV3 and I've noticed something that has surprised me quite a lot.

People placing intentional bugs in their code?

I filtered submissions by status "hacked" and I've noticed that a lot of those submissions have some code inserted in them that is very obviously meant to be hacked.

For example for problem 2000E - Photoshoot for Gorillas, there's many submissions with code such as this:

if ((n ^ m) + (k ^ w) == MAX_N) {
    cout << "0\n";
    return;
}

Why do people* submit such solutions?

*subject to speculation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Filikec 2024-08-14 04:07:27 631 Initial revision (published)