結果

問題 No.490 yukiソート
ユーザー trineutrontrineutron
提出日時 2020-12-17 21:39:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 81,672 KB
実行使用メモリ 66,752 KB
最終ジャッジ日時 2023-10-21 07:10:06
合計ジャッジ時間 3,305 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,540 KB
testcase_01 AC 39 ms
53,540 KB
testcase_02 AC 39 ms
53,540 KB
testcase_03 AC 38 ms
53,540 KB
testcase_04 AC 50 ms
61,972 KB
testcase_05 AC 51 ms
61,972 KB
testcase_06 AC 50 ms
61,968 KB
testcase_07 AC 50 ms
61,972 KB
testcase_08 AC 52 ms
61,972 KB
testcase_09 AC 49 ms
61,968 KB
testcase_10 AC 49 ms
61,968 KB
testcase_11 AC 50 ms
61,972 KB
testcase_12 AC 49 ms
61,968 KB
testcase_13 AC 50 ms
61,972 KB
testcase_14 AC 86 ms
66,748 KB
testcase_15 AC 84 ms
66,752 KB
testcase_16 AC 85 ms
66,752 KB
testcase_17 AC 87 ms
66,748 KB
testcase_18 AC 85 ms
66,752 KB
testcase_19 AC 86 ms
66,748 KB
testcase_20 AC 86 ms
66,748 KB
testcase_21 AC 87 ms
66,748 KB
testcase_22 AC 83 ms
66,752 KB
testcase_23 AC 83 ms
66,752 KB
testcase_24 AC 39 ms
53,540 KB
testcase_25 AC 39 ms
53,540 KB
testcase_26 AC 38 ms
53,540 KB
testcase_27 AC 39 ms
53,540 KB
testcase_28 AC 40 ms
53,540 KB
testcase_29 AC 39 ms
53,540 KB
testcase_30 AC 39 ms
53,540 KB
testcase_31 AC 39 ms
53,540 KB
testcase_32 AC 39 ms
53,540 KB
testcase_33 AC 39 ms
53,540 KB
testcase_34 AC 39 ms
53,540 KB
testcase_35 AC 39 ms
53,540 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:
            continue
        if a[p] > a[q]:
            a[p], a[q] = a[q], a[p]
print(*a)
0