結果

問題 No.490 yukiソート
ユーザー mlihua09mlihua09
提出日時 2020-08-31 22:19:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 76,856 KB
最終ジャッジ日時 2023-08-10 17:55:25
合計ジャッジ時間 4,758 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,236 KB
testcase_01 AC 65 ms
70,900 KB
testcase_02 AC 66 ms
70,748 KB
testcase_03 AC 67 ms
71,188 KB
testcase_04 AC 80 ms
76,140 KB
testcase_05 AC 75 ms
76,256 KB
testcase_06 AC 77 ms
75,984 KB
testcase_07 AC 78 ms
76,344 KB
testcase_08 AC 78 ms
76,148 KB
testcase_09 AC 76 ms
76,112 KB
testcase_10 AC 74 ms
76,252 KB
testcase_11 AC 78 ms
76,068 KB
testcase_12 AC 78 ms
76,116 KB
testcase_13 AC 80 ms
76,148 KB
testcase_14 AC 110 ms
76,844 KB
testcase_15 AC 106 ms
76,856 KB
testcase_16 AC 104 ms
76,520 KB
testcase_17 AC 102 ms
76,400 KB
testcase_18 AC 97 ms
76,440 KB
testcase_19 AC 102 ms
76,756 KB
testcase_20 AC 101 ms
76,680 KB
testcase_21 AC 100 ms
76,756 KB
testcase_22 AC 100 ms
76,736 KB
testcase_23 AC 100 ms
76,740 KB
testcase_24 AC 67 ms
70,748 KB
testcase_25 AC 67 ms
71,108 KB
testcase_26 AC 65 ms
70,928 KB
testcase_27 AC 65 ms
70,920 KB
testcase_28 AC 66 ms
71,252 KB
testcase_29 AC 65 ms
71,240 KB
testcase_30 AC 66 ms
71,100 KB
testcase_31 AC 68 ms
71,040 KB
testcase_32 AC 67 ms
70,900 KB
testcase_33 AC 66 ms
71,248 KB
testcase_34 AC 67 ms
71,372 KB
testcase_35 AC 65 ms
71,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

A = list(map(int, input().split()))

for i in range(1, 2 * n - 3):
    
    for p in range(max(0, i - n + 1), i // 2 + 1):
        if A[p] > A[i - p]:
            
            A[p], A[i - p] = A[i - p], A[p]
            
print(*A)
0