Блог пользователя notwatermango

Автор notwatermango, история, 3 года назад, По-английски

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

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
3 года назад, # |
Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    3 года назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    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 года назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

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