結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,056 KB
testcase_01 AC 27 ms
10,056 KB
testcase_02 AC 26 ms
10,056 KB
testcase_03 AC 26 ms
10,056 KB
testcase_04 AC 65 ms
10,084 KB
testcase_05 AC 67 ms
10,084 KB
testcase_06 AC 63 ms
10,084 KB
testcase_07 AC 65 ms
10,084 KB
testcase_08 AC 66 ms
10,084 KB
testcase_09 AC 67 ms
10,084 KB
testcase_10 AC 67 ms
10,084 KB
testcase_11 AC 67 ms
10,084 KB
testcase_12 AC 64 ms
10,084 KB
testcase_13 AC 66 ms
10,084 KB
testcase_14 AC 1,930 ms
10,292 KB
testcase_15 AC 1,934 ms
10,296 KB
testcase_16 AC 1,926 ms
10,292 KB
testcase_17 AC 1,860 ms
10,292 KB
testcase_18 AC 1,937 ms
10,292 KB
testcase_19 AC 1,920 ms
10,296 KB
testcase_20 AC 1,954 ms
10,296 KB
testcase_21 TLE -
testcase_22 AC 1,980 ms
10,296 KB
testcase_23 AC 1,852 ms
10,296 KB
testcase_24 AC 27 ms
10,056 KB
testcase_25 AC 27 ms
10,056 KB
testcase_26 AC 27 ms
10,056 KB
testcase_27 AC 27 ms
10,056 KB
testcase_28 AC 27 ms
10,056 KB
testcase_29 AC 27 ms
10,056 KB
testcase_30 AC 27 ms
10,056 KB
testcase_31 AC 26 ms
10,056 KB
testcase_32 AC 28 ms
10,056 KB
testcase_33 AC 26 ms
10,056 KB
testcase_34 AC 25 ms
10,056 KB
testcase_35 AC 26 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