


CodePudding user response:
You change an array of 100 to 2000, this problem while 0 & lt;=n<=1000, but the test sample like between 1300-1400; You can tryCodePudding user response:
You change an array of 100 to 2000, this problem while 0 & lt;=n<=1000, but the test sample like between 1300-1400; You can try