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

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

Update: uphacked, thank you satyam343

Contest: Codeforces Round 1017 (Div. 4)
Problem: 2094B - Bobritto Bandito

Please read my post, and if you dislike it, kindly leave a comment explaining why you didn't like it before downvoting!

In this problem, for this test case:

1
4 1 -2 2

The answer should be -1 0 or 0 1. However, this solution ( 315684773 ) gives -2 -1 for this test. Here is the screenshot: (https://prnt.sc/OvZ5SdwdoRq4 ), I tested it in Custom Invocation.

If I am correct, then how can CF accept this solution?

If I am wrong, please explain, and I will delete this post!

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

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
»
13 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Well spotted. This is a logical flaw with the solution which just wasn't caught by any of the pretests or hacks. Hopefully someone >=1900 in rating will come along and uphack it, but this will not affect his standings in the contest.

The checker is correct.

Update: uphacked, thank you satyam343