Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**********************************************************************************/
- /* Problem: d583 "幼稚的企鵝" from jack1 */
- /* Language: JAVA (567 Bytes) */
- /* Result: AC(658ms, 18.3MB) judge by this@ZeroJudge */
- /* Author: ssc24 at 2011-09-27 18:50:34 */
- /**********************************************************************************/
- package javaapplication42;
- import java.util.*;
- //import java.math.*;
- public class JavaApplication42 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- while (sc.hasNext()){
- int n = sc.nextInt();
- int[] pin = new int[n];
- for(int i=0;i<n;i++){
- pin[i]=sc.nextInt();
- }
- Arrays.sort(pin);
- for(int i=0;i<n;i++){
- System.out.print(pin[i]+" ");
- }
- System.out.print("\n");
- }//whlle*/
- }//main
- }//class
Add Comment
Please, Sign In to add comment