sort by teebee

import java.util.*;enum S{S;System z;Scanner s=new Scanner(z.in);int i,n=s.nextInt(),a[]=new int[n];{for(;i<n;)a[i++]=s.nextInt();for(Arrays.sort(a);i-->0;)z.out.print(a[i]+" ");}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page