Introduction - If you have any usage issues, please Google them yourself
More than one set of test data, each set of test data: 1) the first input of an integer number n of the unordered sequence (n does not exceed 1000000) 2) and then continuously input n integers if the value of n the input value of 0, then the input end