Noob needs help with his code :) code with details, appreciate any feedback!

Revision en1, by Wonsei, 2020-06-16 16:59:06

https://codeforces.me/contest/1335/problem/E1

When I run the test, it keeps going well, and suddenly it fails on test 10 data 596 or something, so I cannot see what test case is causing the problem. Im asking for help after 3+hours of coding ! Id really appreciate any help.

Source code below, with detail;

83928250

It works on almost all cases, but there seems to be a counterexample that I seem to be missing. Thanks :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Wonsei 2020-06-16 17:17:37 0 (published)
en2 English Wonsei 2020-06-16 17:13:42 3067 (saved to drafts)
en1 English Wonsei 2020-06-16 16:59:06 531 Initial revision (published)