結果

問題 No.490 yukiソート
ユーザー dangodango
提出日時 2023-06-06 19:27:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 1,095 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 77,168 KB
最終ジャッジ日時 2023-08-28 10:45:00
合計ジャッジ時間 5,484 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,304 KB
testcase_01 AC 70 ms
71,300 KB
testcase_02 AC 70 ms
71,248 KB
testcase_03 AC 74 ms
71,408 KB
testcase_04 AC 83 ms
76,276 KB
testcase_05 AC 84 ms
76,328 KB
testcase_06 AC 84 ms
76,380 KB
testcase_07 AC 85 ms
76,144 KB
testcase_08 AC 84 ms
76,388 KB
testcase_09 AC 84 ms
76,172 KB
testcase_10 AC 84 ms
76,152 KB
testcase_11 AC 84 ms
76,456 KB
testcase_12 AC 83 ms
76,336 KB
testcase_13 AC 83 ms
76,480 KB
testcase_14 AC 137 ms
76,832 KB
testcase_15 AC 136 ms
77,168 KB
testcase_16 AC 137 ms
76,904 KB
testcase_17 AC 135 ms
76,960 KB
testcase_18 AC 137 ms
76,904 KB
testcase_19 AC 137 ms
77,060 KB
testcase_20 AC 138 ms
77,060 KB
testcase_21 AC 137 ms
77,132 KB
testcase_22 AC 138 ms
76,912 KB
testcase_23 AC 138 ms
76,824 KB
testcase_24 AC 72 ms
71,420 KB
testcase_25 AC 72 ms
71,432 KB
testcase_26 AC 74 ms
71,472 KB
testcase_27 AC 72 ms
71,304 KB
testcase_28 AC 72 ms
71,252 KB
testcase_29 AC 72 ms
71,584 KB
testcase_30 AC 72 ms
71,572 KB
testcase_31 AC 70 ms
71,304 KB
testcase_32 AC 72 ms
71,416 KB
testcase_33 AC 73 ms
71,128 KB
testcase_34 AC 71 ms
71,320 KB
testcase_35 AC 72 ms
71,308 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 0 <= q < n and p < q:
            if A[p] > A[q]:
                A[p], A[q] = A[q], A[p]
print(*A)
0