結果

問題 No.490 yukiソート
ユーザー RiaruHebisumaRiaruHebisuma
提出日時 2017-03-10 23:06:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 263 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 8,380 KB
最終ジャッジ日時 2023-09-06 15:56:26
合計ジャッジ時間 22,064 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 16 ms
7,736 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 14 ms
7,772 KB
testcase_04 AC 59 ms
7,780 KB
testcase_05 AC 57 ms
7,820 KB
testcase_06 AC 57 ms
7,828 KB
testcase_07 AC 58 ms
7,800 KB
testcase_08 AC 56 ms
7,884 KB
testcase_09 AC 57 ms
7,828 KB
testcase_10 AC 55 ms
7,816 KB
testcase_11 AC 57 ms
7,732 KB
testcase_12 AC 58 ms
7,736 KB
testcase_13 AC 57 ms
7,772 KB
testcase_14 AC 1,917 ms
8,376 KB
testcase_15 AC 1,929 ms
8,284 KB
testcase_16 AC 1,933 ms
8,380 KB
testcase_17 AC 1,916 ms
8,316 KB
testcase_18 AC 1,912 ms
8,248 KB
testcase_19 AC 1,946 ms
8,220 KB
testcase_20 AC 1,900 ms
8,200 KB
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 AC 15 ms
7,844 KB
testcase_25 AC 15 ms
7,828 KB
testcase_26 AC 15 ms
7,788 KB
testcase_27 AC 15 ms
7,736 KB
testcase_28 AC 15 ms
7,900 KB
testcase_29 AC 15 ms
7,760 KB
testcase_30 AC 14 ms
7,936 KB
testcase_31 AC 15 ms
7,892 KB
testcase_32 AC 14 ms
7,772 KB
testcase_33 AC 15 ms
7,792 KB
testcase_34 AC 14 ms
7,824 KB
testcase_35 AC 15 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))

for i in range(1,(2*n)-3):
    for p in range(i+1):
        q = i-p
        if p<q and q < n:
            if a[p]>a[q]:
                a[p],a[q]=a[q],a[p]
                    

for i in a:
    print(i,end=' ')
0