結果

問題 No.490 yukiソート
ユーザー nisizawanisizawa
提出日時 2017-12-05 20:28:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 247 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,416 KB
最終ジャッジ日時 2023-08-19 03:34:17
合計ジャッジ時間 21,267 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,824 KB
testcase_01 AC 13 ms
7,836 KB
testcase_02 AC 14 ms
7,820 KB
testcase_03 AC 13 ms
7,832 KB
testcase_04 AC 50 ms
7,996 KB
testcase_05 AC 49 ms
7,964 KB
testcase_06 AC 50 ms
7,944 KB
testcase_07 AC 54 ms
7,836 KB
testcase_08 AC 50 ms
7,760 KB
testcase_09 AC 58 ms
7,840 KB
testcase_10 AC 51 ms
7,904 KB
testcase_11 AC 51 ms
7,888 KB
testcase_12 AC 50 ms
7,896 KB
testcase_13 AC 52 ms
7,840 KB
testcase_14 AC 1,895 ms
8,416 KB
testcase_15 AC 1,757 ms
8,368 KB
testcase_16 AC 1,806 ms
8,220 KB
testcase_17 AC 1,818 ms
8,200 KB
testcase_18 AC 1,789 ms
8,412 KB
testcase_19 TLE -
testcase_20 AC 1,825 ms
8,200 KB
testcase_21 TLE -
testcase_22 AC 1,794 ms
8,380 KB
testcase_23 AC 1,792 ms
8,260 KB
testcase_24 AC 14 ms
7,824 KB
testcase_25 AC 13 ms
7,788 KB
testcase_26 AC 13 ms
7,752 KB
testcase_27 AC 13 ms
7,852 KB
testcase_28 AC 14 ms
7,832 KB
testcase_29 AC 13 ms
7,936 KB
testcase_30 AC 13 ms
7,748 KB
testcase_31 AC 14 ms
7,820 KB
testcase_32 AC 15 ms
7,784 KB
testcase_33 AC 13 ms
7,820 KB
testcase_34 AC 13 ms
7,884 KB
testcase_35 AC 13 ms
7,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

for i in range(1, 2 * n - 3):
    for p in range(n):
        q = i - p
        if 0 <= p < q < n and a[p] > a[q]:
            a[p], a[q] = a[q], a[p]
for i in a:
    print(i, end=' ')
print('')
0