結果

問題 No.490 yukiソート
ユーザー tsunabittsunabit
提出日時 2019-06-09 20:54:06
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 493 bytes
コンパイル時間 4,548 ms
コンパイル使用メモリ 85,000 KB
実行使用メモリ 42,620 KB
最終ジャッジ日時 2024-10-06 00:16:37
合計ジャッジ時間 10,657 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class No490 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] a = sc.nextLine().split(" ");
        Arrays.sort(a);
        for(int i = 0; i < a.length; i++) {
        	System.out.print(a[i] + " ");
        }
        System.out.println("");
    }
}
0