Code failing on 2122nd testcase

Правка en1, от roycf123, 2022-10-27 19:27:03

Hi everyone!

I recently submitted a solution on Codeforces and got WA on 2122nd testcase. It is not possible to view it as after a few testcases it shows '...'

Would someone please help me to debug? What I tried to do is brute all possible values of a[j] for a given a[i]. I stored the original indices in a map because sorting the array would change it.

Problem Link

My submission: 178126818

Теги brute force, binary search

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский roycf123 2022-10-27 19:27:03 547 Initial revision (published)