結果
問題 | No.490 yukiソート |
ユーザー | fal_rnd |
提出日時 | 2017-03-10 22:24:57 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 3,220 ms |
コンパイル使用メモリ | 72,164 KB |
実行使用メモリ | 62,152 KB |
最終ジャッジ日時 | 2023-09-06 13:53:57 |
合計ジャッジ時間 | 9,169 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 115 ms
53,904 KB |
testcase_01 | WA | - |
testcase_02 | AC | 111 ms
55,984 KB |
testcase_03 | AC | 113 ms
55,712 KB |
testcase_04 | AC | 160 ms
56,264 KB |
testcase_05 | AC | 167 ms
56,580 KB |
testcase_06 | AC | 148 ms
56,516 KB |
testcase_07 | AC | 145 ms
55,808 KB |
testcase_08 | AC | 148 ms
56,780 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 | 117 ms
55,900 KB |
testcase_25 | AC | 114 ms
56,172 KB |
testcase_26 | AC | 109 ms
57,848 KB |
testcase_27 | AC | 110 ms
56,012 KB |
testcase_28 | AC | 115 ms
55,968 KB |
testcase_29 | AC | 112 ms
55,996 KB |
testcase_30 | AC | 110 ms
55,828 KB |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
ソースコード
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(",", " ")); } }