結果

問題 No.490 yukiソート
ユーザー ysys
提出日時 2018-08-14 21:03:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 237 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 11,816 KB
実行使用メモリ 10,396 KB
最終ジャッジ日時 2023-10-24 17:15:17
合計ジャッジ時間 22,686 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,144 KB
testcase_01 AC 26 ms
10,144 KB
testcase_02 AC 26 ms
10,144 KB
testcase_03 AC 31 ms
10,144 KB
testcase_04 AC 68 ms
10,168 KB
testcase_05 AC 66 ms
10,168 KB
testcase_06 AC 67 ms
10,168 KB
testcase_07 AC 70 ms
10,168 KB
testcase_08 AC 70 ms
10,168 KB
testcase_09 AC 66 ms
10,168 KB
testcase_10 AC 68 ms
10,168 KB
testcase_11 AC 67 ms
10,168 KB
testcase_12 AC 69 ms
10,168 KB
testcase_13 AC 66 ms
10,168 KB
testcase_14 TLE -
testcase_15 TLE -
testcase_16 AC 1,998 ms
10,392 KB
testcase_17 TLE -
testcase_18 AC 1,984 ms
10,392 KB
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 AC 1,988 ms
10,392 KB
testcase_23 AC 1,989 ms
10,392 KB
testcase_24 AC 28 ms
10,144 KB
testcase_25 AC 27 ms
10,144 KB
testcase_26 AC 27 ms
10,144 KB
testcase_27 AC 26 ms
10,144 KB
testcase_28 AC 26 ms
10,144 KB
testcase_29 AC 26 ms
10,144 KB
testcase_30 AC 26 ms
10,144 KB
testcase_31 AC 26 ms
10,144 KB
testcase_32 AC 26 ms
10,144 KB
testcase_33 AC 27 ms
10,144 KB
testcase_34 AC 26 ms
10,144 KB
testcase_35 AC 26 ms
10,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
for i in range(2 * n - 3):
    for j in range(n):
        if 0 <= i - j < n and j < i - j and a[j] > a[i - j]:
            a[j], a[i - j] = a[i - j], a[j]

print(" ".join(map(str, a)))
0