

CodePudding user response:
With black, black conforms to the human thinking habits,Is to take out the first, and then the second than
Take the first n and n + 1
CodePudding user response:
Suggestions on the compiler to write more and test,CodePudding user response:
Array subscript starting from 0, sometimes for loop subscript problems should be paid more attention to, if you just open the num, then from 0 to (num - 1), if the num, an array, the result will not change, but you have OJ will burst, so commonly used in open array target number + 1, then starting from 1