C2-DUAL Codeforces Round 889 (Div. 2)

Revision en1, by Code_Mystique, 2023-08-06 09:04:43

I am new to codeforces. So, I am not sure whether it is correct for me to ask my doubt here or not. So, if anyone knows some discuss forums please let me know...

My doubt is in C-2 (Dual {hard} ). My accepted solution => 216626455 if I comment out the "if statements" in the last 2 paragraphs, then I get wrong answer in test case -2. Can anyone give me a testcase for which it may fail if I comment out those statements??

[Note :- I'm doing c==1 after making all numbers +ve & doing d==1 after making all numbers -ve] -----------------------------------------------------------------*****-----------------------------------------------------------

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Code_Mystique 2023-08-06 09:04:43 705 Initial revision (published)