結果

問題 No.490 yukiソート
ユーザー c-yanc-yan
提出日時 2020-11-08 00:10:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 891 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 8,520 KB
最終ジャッジ日時 2023-09-29 21:02:14
合計ジャッジ時間 10,510 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,804 KB
testcase_01 AC 14 ms
7,844 KB
testcase_02 AC 15 ms
7,904 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 34 ms
7,908 KB
testcase_05 AC 33 ms
7,932 KB
testcase_06 AC 32 ms
7,836 KB
testcase_07 AC 33 ms
7,892 KB
testcase_08 AC 34 ms
7,780 KB
testcase_09 AC 33 ms
7,776 KB
testcase_10 AC 33 ms
7,832 KB
testcase_11 AC 34 ms
7,892 KB
testcase_12 AC 33 ms
7,828 KB
testcase_13 AC 33 ms
7,760 KB
testcase_14 AC 786 ms
8,340 KB
testcase_15 AC 789 ms
8,344 KB
testcase_16 AC 789 ms
8,336 KB
testcase_17 AC 794 ms
8,368 KB
testcase_18 AC 829 ms
8,452 KB
testcase_19 AC 797 ms
8,408 KB
testcase_20 AC 891 ms
8,288 KB
testcase_21 AC 828 ms
8,464 KB
testcase_22 AC 860 ms
8,292 KB
testcase_23 AC 878 ms
8,520 KB
testcase_24 AC 15 ms
7,784 KB
testcase_25 AC 14 ms
7,804 KB
testcase_26 AC 14 ms
7,772 KB
testcase_27 AC 14 ms
7,784 KB
testcase_28 AC 15 ms
7,968 KB
testcase_29 AC 14 ms
7,780 KB
testcase_30 AC 14 ms
7,936 KB
testcase_31 AC 14 ms
7,816 KB
testcase_32 AC 14 ms
7,780 KB
testcase_33 AC 14 ms
7,836 KB
testcase_34 AC 14 ms
7,892 KB
testcase_35 AC 14 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, *a = map(int, open(0).read().split())

for i in range(1, 2 * n - 3):
    for p in range(max(i - n + 1, 0), n - 2):
        q = i - p
        if p >= q:
            break
        if a[p] <= a[q]:
            continue
        t = a[p]
        a[p] = a[q]
        a[q] = t
print(*a)
0