wrong solution passes

Revision en1, by Axial-Tilted, 2024-07-17 21:49:07

i was too sleepy and decided to quickly solve a problem before sleeping so i submitted a quick code for this problem

https://codeforces.me/problemset/problem/1132/E

even tho my code is wrong it still passes all 90 tests but while i was trying to prove my solution i realized it was wrong and here is a counter example

889 0 0 0 0 0 0 120 105 here is the answer is 889 but my code outputs 888 [submission:https://codeforces.me/contest/1132/submission/271074483]

iam just curious how its even possible to pass 90 tests with a wrong code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Axial-Tilted 2024-07-18 00:36:56 93
en3 English Axial-Tilted 2024-07-17 21:50:11 47
en2 English Axial-Tilted 2024-07-17 21:49:45 15
en1 English Axial-Tilted 2024-07-17 21:49:07 574 Initial revision (published)