Codeforces Round #839 — Problem G — Gaining Rating

Revision en1, by KushagrJaiswal, 2023-01-22 22:31:55

My solution gets a wrong answer verdict, but I can't think of a counterexample.

Here's my solution — https://mirror.codeforces.com/contest/1772/submission/190133399. I have used 0-indexing, and have set the extra last element of the input to +inf in order to avoid bounds checking.

Can anyone give me a counterexample?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English KushagrJaiswal 2023-01-22 22:31:55 374 Initial revision (published)