Guest User

Untitled

a guest
Jan 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. /**********************************************************************************/
  2. /* Problem: d583 "幼稚的企鵝" from jack1 */
  3. /* Language: JAVA (567 Bytes) */
  4. /* Result: AC(658ms, 18.3MB) judge by this@ZeroJudge */
  5. /* Author: ssc24 at 2011-09-27 18:50:34 */
  6. /**********************************************************************************/
  7.  
  8.  
  9. package javaapplication42;
  10. import java.util.*;
  11. //import java.math.*;
  12.  
  13.  
  14.  
  15. public class JavaApplication42 {
  16.  
  17.  
  18. public static void main(String[] args) {
  19.  
  20.  
  21. Scanner sc = new Scanner(System.in);
  22. while (sc.hasNext()){
  23. int n = sc.nextInt();
  24. int[] pin = new int[n];
  25. for(int i=0;i<n;i++){
  26. pin[i]=sc.nextInt();
  27. }
  28. Arrays.sort(pin);
  29. for(int i=0;i<n;i++){
  30. System.out.print(pin[i]+" ");
  31. }
  32. System.out.print("\n");
  33.  
  34.  
  35.  
  36. }//whlle*/
  37. }//main
  38.  
  39.  
  40.  
  41. }//class
Add Comment
Please, Sign In to add comment