結果

問題 No.490 yukiソート
ユーザー fal_rnd
提出日時 2017-03-10 22:24:57
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 2,345 ms
コンパイル使用メモリ 75,276 KB
実行使用メモリ 58,832 KB
最終ジャッジ日時 2024-06-24 08:24:51
合計ジャッジ時間 9,223 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int[] ar=new int[s.nextInt()];
		for(int i=0;i<ar.length;i++) {
			ar[i]=s.nextInt();
		}
		Arrays.sort(ar);
		System.out.println(Arrays.toString(ar).replaceAll("[^0-9,]", "").replaceAll(",", " "));
	}
}
0