結果

問題 No.490 yukiソート
ユーザー mlihua09mlihua09
提出日時 2020-08-31 22:17:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 612 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 77,068 KB
最終ジャッジ日時 2023-08-10 17:53:59
合計ジャッジ時間 5,255 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,876 KB
testcase_01 AC 68 ms
71,032 KB
testcase_02 AC 69 ms
71,208 KB
testcase_03 AC 68 ms
71,096 KB
testcase_04 AC 79 ms
76,224 KB
testcase_05 WA -
testcase_06 AC 77 ms
76,224 KB
testcase_07 WA -
testcase_08 AC 78 ms
76,152 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 79 ms
76,120 KB
testcase_12 AC 78 ms
76,232 KB
testcase_13 AC 79 ms
75,772 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 103 ms
76,864 KB
testcase_19 WA -
testcase_20 AC 103 ms
76,652 KB
testcase_21 WA -
testcase_22 AC 105 ms
76,816 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 66 ms
71,072 KB
testcase_26 AC 66 ms
70,908 KB
testcase_27 AC 65 ms
70,744 KB
testcase_28 AC 68 ms
71,068 KB
testcase_29 AC 66 ms
70,756 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 66 ms
71,072 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 69 ms
71,032 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):
        if A[p] > A[i - p]:
            
            A[p], A[i - p] = A[i - p], A[p]
            
print(*A)
0