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

Автор H3X460N157, история, 19 месяцев назад, По-английски

After CF Educational 136 about 4000 solutions were hacked in two hours. What the hell is that? Could anyone explain, how it's possible? Is the problem with 4000 solutions or with the system testing?

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

»
19 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

tests were weak + alot of people in problem B were hacked due to a simple mistake since the diffrence between the previous sum and current element in array d should be >= 0 and d[i] != 0 then ans = -1 because basically if this happened you can use in this index in answer two diffrent elements which will make the answer not unique but most did it > 0 so basically case 2 6 8 for example they will fail because 2+6 = 8 and 8-8 = 0 and ans should be equal -1. i used this test to hack 14 people.

Spoiler