結果

問題 No.490 yukiソート
ユーザー mlihua09mlihua09
提出日時 2020-08-31 22:17:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 66,560 KB
最終ジャッジ日時 2024-04-28 11:20:32
合計ジャッジ時間 3,292 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,712 KB
testcase_01 AC 38 ms
51,456 KB
testcase_02 AC 37 ms
51,456 KB
testcase_03 AC 35 ms
51,456 KB
testcase_04 AC 48 ms
61,312 KB
testcase_05 WA -
testcase_06 AC 51 ms
61,568 KB
testcase_07 WA -
testcase_08 AC 52 ms
61,312 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 51 ms
61,440 KB
testcase_12 AC 49 ms
61,824 KB
testcase_13 AC 50 ms
61,696 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 73 ms
66,048 KB
testcase_19 WA -
testcase_20 AC 74 ms
65,792 KB
testcase_21 WA -
testcase_22 AC 79 ms
65,536 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 36 ms
51,712 KB
testcase_26 AC 36 ms
51,328 KB
testcase_27 AC 36 ms
51,456 KB
testcase_28 AC 37 ms
51,328 KB
testcase_29 AC 37 ms
51,328 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 37 ms
51,456 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 35 ms
51,328 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