結果

問題 No.490 yukiソート
ユーザー nbisconbisco
提出日時 2018-04-01 17:13:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 475 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,896 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-09-08 12:28:51
合計ジャッジ時間 27,769 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,928 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 AC 17 ms
7,836 KB
testcase_03 AC 16 ms
7,896 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input().strip())
a = [int(i) for i in input().strip().split(" ")]

for i in range(1, 2*n-3):
    for q in range(1, n):
        if a[0] > a[q]:
            tmp = a[0]
            a[0] = a[q]
            a[q] = tmp
    for p in range(1, n-1):
        for q in range(p+1, i-p):
            if q >= n:
                break
            if a[p] > a[q]:
                tmp = a[q]
                a[q] = a[p]
                a[p] = tmp
print(" ".join([str(i) for i in a]))
0