B. Bobritto Bandito: Logical Flaw or Validator Bug?

Правка en1, от Mahfuz2411, 2025-04-15 14:12:11

Contest: Codeforces Round 1017 (Div. 4)
Problem: 2094B - Бобритто Бандито

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!

Теги bugs, wrong output, weak_test_data

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Mahfuz2411 2025-04-15 14:50:12 61 Tiny change: 'Contest: [' -> 'Update: uphacked, thank you [user:satyam343]\n\n\nContest: ['
en1 Английский Mahfuz2411 2025-04-15 14:12:11 633 Initial revision (published)