roycf123's blog

By roycf123, history, 2 years ago, In English

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

  • Vote: I like it
  • -22
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it
Input
Expected output
Your output
  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      If you really wanted to see, you could just print the 2122nd test case by changing your code.