79286880

Date: 2024-12-17 06:50:51
Score: 1.5
Natty:
Report link

The issue lies in the array size. The constraints specify that the array size can be up to 10^5, but you have defined a global array of size 100.

To resolve this, you can choose one of the following approaches:

  1. Increase the size of the global array to at least 10^5 (considering 0-based indexing).
  2. Use a local array of size N for each test case.

Also do not use a array of size 10^5 for each test case since it might result in a TLE

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mani Kiran