結果

問題 No.490 yukiソート
ユーザー ああいいああいい
提出日時 2022-05-17 19:22:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 76,924 KB
最終ジャッジ日時 2023-10-13 18:48:01
合計ジャッジ時間 5,514 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
70,964 KB
testcase_01 AC 78 ms
71,256 KB
testcase_02 AC 72 ms
71,084 KB
testcase_03 AC 75 ms
71,384 KB
testcase_04 AC 85 ms
76,340 KB
testcase_05 AC 85 ms
76,028 KB
testcase_06 AC 84 ms
76,240 KB
testcase_07 AC 85 ms
75,916 KB
testcase_08 AC 84 ms
76,124 KB
testcase_09 AC 87 ms
76,152 KB
testcase_10 AC 86 ms
76,248 KB
testcase_11 AC 86 ms
76,056 KB
testcase_12 AC 86 ms
76,208 KB
testcase_13 AC 87 ms
75,920 KB
testcase_14 AC 141 ms
76,872 KB
testcase_15 AC 120 ms
76,852 KB
testcase_16 AC 118 ms
76,712 KB
testcase_17 AC 123 ms
76,764 KB
testcase_18 AC 118 ms
76,780 KB
testcase_19 AC 120 ms
76,636 KB
testcase_20 AC 121 ms
76,808 KB
testcase_21 AC 122 ms
76,692 KB
testcase_22 AC 118 ms
76,684 KB
testcase_23 AC 117 ms
76,924 KB
testcase_24 AC 77 ms
71,156 KB
testcase_25 AC 74 ms
71,148 KB
testcase_26 AC 73 ms
71,016 KB
testcase_27 AC 73 ms
71,164 KB
testcase_28 AC 73 ms
71,168 KB
testcase_29 AC 74 ms
71,280 KB
testcase_30 AC 74 ms
71,284 KB
testcase_31 AC 75 ms
71,396 KB
testcase_32 AC 75 ms
71,252 KB
testcase_33 AC 73 ms
71,220 KB
testcase_34 AC 77 ms
71,116 KB
testcase_35 AC 76 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))

for i in range(1,2 * n - 3):
    for p in range(i + 1):
        q = i - p
        if q <= p:break
        if q >= n:continue
        if a[p] > a[q]:
            a[p],a[q] = a[q],a[p]
print(*a)
0