Submission gets Accepted even though it shouldn't!

Правка en1, от printshubham, 2024-09-18 15:24:40

Hello Codeforces,

Recently I was solving 1995B1 - Букет (легкая версия) problem. Eventually I came to a solution and finally it passed all the sample test cases, so I submitted it. It gets accepted! But I soon realized that my code was quite complex and I should think for other approach, while doing so I realized that my previous submission should get TLE for some type of test cases.

Here is the 281661933 which gets TLE for below TC, but gets accepted by the Judging system.


2 4 5 3 6 8 9 4 5 3 1 9 7

(Both of them gets TLE).

I figured out that it gets stuck in the while loop which causes TLE.

Eventually I had to look up at others' submissions since I was not able to come up with other solution and it was working as expected(not getting TLE, obviously).

ug

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский printshubham 2024-09-23 10:03:24 0 (published)
en3 Английский printshubham 2024-09-18 15:59:09 24 Tiny change: 'gets TLE).\n\n\nI fi' -> 'gets TLE). There are more such TCs\n\n\nI fi'
en2 Английский printshubham 2024-09-18 15:56:40 450 Tiny change: 'ission:281661933]\n\n' -> 'ission:281710864]\n\n'
en1 Английский printshubham 2024-09-18 15:24:40 860 Initial revision (saved to drafts)