Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Unable to understand why my output is wrong ;)

Revision en1, by Geekarka, 2024-07-21 10:59:18

Hello all, I'm Geekarka and I got wrong answer on pretest 2 11th testcase in my 271612109 for the problem 1990B - Array Craft of Divide by Zero 2018 and Codeforces Round 474 (Div. 1 + Div. 2, combined). The testcase is 5 2 1 (n=5, x=2, y=1). My output is 1 1 -1 -1 -1. The correct answer is 1 1 -1 1 -1. I will be very grateful if someone helps me understand this. Thank you.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Geekarka 2024-07-21 11:01:34 3 Tiny change: ' [contest:960]. The te' -> ' [contest:1990]. The te'
en1 English Geekarka 2024-07-21 10:59:18 392 Initial revision (published)