wrong solution passes

Правка en3, от Axial-Tilted, 2024-07-17 21:50:11

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

https://codeforces.net/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 the the answer is 889 but my code outputs 888

271074483

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Axial-Tilted 2024-07-18 00:36:56 93
en3 Английский Axial-Tilted 2024-07-17 21:50:11 47
en2 Английский Axial-Tilted 2024-07-17 21:49:45 15
en1 Английский Axial-Tilted 2024-07-17 21:49:07 574 Initial revision (published)