Submission gets Accepted even though it shouldn't!

Правка en4, от printshubham, 2024-09-23 10:03:24

Hello Codeforces,

Recently I was solving 1995B1 - Bouquet (Easy Version) 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). There are more such TCs

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). 281710864

I guess the judge doesn't cover above mentioned type of testcases.

This problem is from Codeforces Round 961 (Div. 2) Since I couldn't find a direct way to report the problem so I am mentioning the writers here and also the headquarters.

ikrpprppp Vitaly503 goncharovmike MikeMirzayanov

Please do the needful and let me know if I missed something.

Thank You!

История

 
 
 
 
Правки
 
 
  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)