結果

問題 No.490 yukiソート
ユーザー uafr_csuafr_cs
提出日時 2017-03-10 22:37:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 644 bytes
コンパイル時間 2,199 ms
コンパイル使用メモリ 89,344 KB
実行使用メモリ 61,576 KB
最終ジャッジ日時 2023-09-06 15:41:24
合計ジャッジ時間 11,659 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
57,000 KB
testcase_01 WA -
testcase_02 AC 161 ms
57,072 KB
testcase_03 AC 162 ms
57,004 KB
testcase_04 AC 203 ms
57,160 KB
testcase_05 AC 205 ms
58,012 KB
testcase_06 AC 205 ms
57,324 KB
testcase_07 AC 204 ms
57,048 KB
testcase_08 AC 203 ms
57,344 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 162 ms
57,092 KB
testcase_25 AC 161 ms
57,052 KB
testcase_26 AC 161 ms
56,992 KB
testcase_27 AC 161 ms
56,780 KB
testcase_28 AC 166 ms
57,048 KB
testcase_29 AC 163 ms
57,048 KB
testcase_30 AC 162 ms
57,188 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int n = sc.nextInt();

		long[] array = new long[n];
		for(int i = 0; i < n; i++){
			array[i] = sc.nextLong();
		}
		
		Arrays.sort(array);
		
		for(int i = 0; i < n; i++){
			System.out.print((i == 0 ? "" : " ") + array[i]);
		}
		System.out.println();
	}
}
0