notwatermango's blog

By notwatermango, history, 3 years ago, In English

https://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

»
3 years ago, # |
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.

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

    so it's okay to code

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

    for the memes? welp

    edit: also thanks for replying

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      yeah its okay but why would you do that.....

      • »
        »
        »
        »
        3 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        yeah.. i wonder why they did that. not me tho. just concerned

»
3 years ago, # |
  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"