notwatermango's blog

By notwatermango, history, 5 years ago, In English

https://mirror.codeforces.com/contest/1598/submission/131464090

They knowingly hacked their own code...

I suppose this hack is illegal? Will codeforces detect this automatically or someone has to report this?

Edit

 if(n == 3 && a[0] == 228 && a[1] == 1337 && a[2] == 228){
        cout << "HACKED LOL" << endl;
        return;
 }

for those who doesn't bother reading the submission

  • Vote: I like it
  • -8
  • Vote: I do not like it

»
5 years ago, hide # |
Rev. 4  
Vote: I like it 0 Vote: I do not like it

No its not illegal. Also hacks don't affect your score in educational rounds.

»
5 years ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

and now, because of this, we have one more testcase to run through: "1 3 228 1337 228"