結果

問題 No.490 yukiソート
ユーザー ABKZABKZ
提出日時 2023-09-11 07:24:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 76,820 KB
最終ジャッジ日時 2023-09-11 07:24:49
合計ジャッジ時間 5,185 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,452 KB
testcase_01 AC 72 ms
71,488 KB
testcase_02 AC 72 ms
71,316 KB
testcase_03 AC 74 ms
71,552 KB
testcase_04 AC 82 ms
76,324 KB
testcase_05 AC 88 ms
76,248 KB
testcase_06 AC 84 ms
76,308 KB
testcase_07 AC 82 ms
76,324 KB
testcase_08 AC 84 ms
76,400 KB
testcase_09 AC 87 ms
76,248 KB
testcase_10 AC 80 ms
76,104 KB
testcase_11 AC 81 ms
76,340 KB
testcase_12 AC 81 ms
76,284 KB
testcase_13 AC 83 ms
76,428 KB
testcase_14 AC 115 ms
76,656 KB
testcase_15 AC 115 ms
76,564 KB
testcase_16 AC 112 ms
76,448 KB
testcase_17 AC 113 ms
76,544 KB
testcase_18 AC 111 ms
76,664 KB
testcase_19 AC 116 ms
76,820 KB
testcase_20 AC 113 ms
76,608 KB
testcase_21 AC 114 ms
76,636 KB
testcase_22 AC 113 ms
76,704 KB
testcase_23 AC 112 ms
76,544 KB
testcase_24 AC 74 ms
71,280 KB
testcase_25 AC 75 ms
71,272 KB
testcase_26 AC 75 ms
71,220 KB
testcase_27 AC 74 ms
71,268 KB
testcase_28 AC 74 ms
71,500 KB
testcase_29 AC 73 ms
71,456 KB
testcase_30 AC 75 ms
71,108 KB
testcase_31 AC 72 ms
71,288 KB
testcase_32 AC 74 ms
71,524 KB
testcase_33 AC 72 ms
71,052 KB
testcase_34 AC 74 ms
71,404 KB
testcase_35 AC 75 ms
71,380 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 q < p:
            break
        if q < n and a[p] > a[q]:
            a[p], a[q] = a[q], a[p]

print(' '.join([str(x) for x in a]))
0