WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.
Threads: For an array of n integers. Printed on 2 line arrays respectively arranged vertically rising and descending. Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces. Output: two lines, line array is arranged on the increase, bottom line array is sorted by dimensional reduction. The numbers on the same line separated by spaces. For example: