結果

問題 No.490 yukiソート
ユーザー _matumo__matumo_
提出日時 2018-12-20 08:58:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 219 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 11,796 KB
実行使用メモリ 10,364 KB
最終ジャッジ日時 2023-10-26 00:24:14
合計ジャッジ時間 22,732 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
v = list(map(int,input().split()))
for i in range(1, 2*n-3):
    for q in range(1,n):
        p=i-q
        if p>=0 and p<q and v[p]>v[q]:
            v[p], v[q] = v[q], v[p]
print(" ".join(map(str,v)))
0