Home > Back-end > , for help and error how to implement, quite disturbed, online etc.
, for help and error how to implement, quite disturbed, online etc.
Time:01-11
Subject content: will output data in a given sequence in reverse,
Input format: the first line the number of the data in the input sequence; The second line of input N data, separated by Spaces, (the input data are integer)
Output format: output after the reverse order of sequence data, separated by a space, the input output ERROR in the unreasonable
Input the sample: 3
1 2 3
The output sample: 3 2 1
CodePudding user response:
How is not reasonable? Have to order? Determine the input data is larger than the previous can realize ascending input,
CodePudding user response:
Input the reasonable rarely, unreasonable situation more than the ERROR: The number of data is not a positive integer; But a 0, negative The second line of data is less than N, more than N, other characters, instead of a space...