Why is this code getting this verdict! (Last Div4)

Правка en2, от Mostafa_Alaa99, 2025-10-29 23:47:03

About Div4E

here is my submission: 346532153

as you can see in my code I made this in the end, to make sure that this is really the error

if len(ans) != len(set(ans)): print(1 / 0)

but even though, it didn't give me runtime and um getting this

wrong answer points in output are not distinct (test case 189)

Btw, if someone knew my actual bug, plz tell me, I solved this problem already using PQ but I am struggling with its BS sol even I think I wrote the idea correctly

UPD1: I got the bug, it was I didn't check before x inclusively and valid as well as same with other side so I can fill the k

but this doesn't change the fact that the above error I was getting is strange, so I still need to know why I got it

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Mostafa_Alaa99 2025-10-29 23:47:03 255
en1 Английский Mostafa_Alaa99 2025-10-29 23:31:55 615 Initial revision (published)