結果

問題 No.490 yukiソート
ユーザー brthyyjpbrthyyjp
提出日時 2021-05-19 22:16:16
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 77,232 KB
最終ジャッジ日時 2023-07-31 10:58:38
合計ジャッジ時間 5,227 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,432 KB
testcase_01 AC 69 ms
71,384 KB
testcase_02 AC 70 ms
71,612 KB
testcase_03 AC 70 ms
71,248 KB
testcase_04 AC 80 ms
76,340 KB
testcase_05 AC 81 ms
76,256 KB
testcase_06 AC 80 ms
76,152 KB
testcase_07 AC 81 ms
76,540 KB
testcase_08 AC 79 ms
76,476 KB
testcase_09 AC 80 ms
76,460 KB
testcase_10 AC 81 ms
76,444 KB
testcase_11 AC 80 ms
76,340 KB
testcase_12 AC 79 ms
76,444 KB
testcase_13 AC 79 ms
76,356 KB
testcase_14 AC 129 ms
76,692 KB
testcase_15 AC 127 ms
76,728 KB
testcase_16 AC 126 ms
77,128 KB
testcase_17 AC 126 ms
77,084 KB
testcase_18 AC 128 ms
77,232 KB
testcase_19 AC 128 ms
77,108 KB
testcase_20 AC 126 ms
76,956 KB
testcase_21 AC 126 ms
77,028 KB
testcase_22 AC 126 ms
77,068 KB
testcase_23 AC 125 ms
76,984 KB
testcase_24 AC 68 ms
71,232 KB
testcase_25 AC 69 ms
71,532 KB
testcase_26 AC 69 ms
71,352 KB
testcase_27 AC 69 ms
71,440 KB
testcase_28 AC 69 ms
71,596 KB
testcase_29 AC 70 ms
71,592 KB
testcase_30 AC 70 ms
71,612 KB
testcase_31 AC 70 ms
71,300 KB
testcase_32 AC 69 ms
71,616 KB
testcase_33 AC 69 ms
71,280 KB
testcase_34 AC 70 ms
71,500 KB
testcase_35 AC 71 ms
71,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
for i in range(1, 2*n-3):
    for p in range(n):
        q = i-p
        if p < q < n:
            if A[p] > A[q]:
                A[p], A[q] = A[q], A[p]
print(*A)
0