結果

問題 No.490 yukiソート
ユーザー dangodango
提出日時 2023-06-06 19:24:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 234 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,556 KB
最終ジャッジ日時 2023-08-28 10:44:53
合計ジャッジ時間 22,967 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 15 ms
7,736 KB
testcase_02 AC 14 ms
7,816 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 62 ms
7,696 KB
testcase_05 AC 58 ms
7,868 KB
testcase_06 AC 58 ms
7,764 KB
testcase_07 AC 57 ms
7,728 KB
testcase_08 AC 58 ms
7,860 KB
testcase_09 AC 57 ms
7,868 KB
testcase_10 AC 62 ms
7,916 KB
testcase_11 AC 57 ms
7,864 KB
testcase_12 AC 59 ms
7,908 KB
testcase_13 AC 59 ms
7,760 KB
testcase_14 TLE -
testcase_15 AC 1,987 ms
8,380 KB
testcase_16 TLE -
testcase_17 AC 1,965 ms
8,556 KB
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 AC 1,953 ms
8,428 KB
testcase_23 TLE -
testcase_24 AC 15 ms
7,936 KB
testcase_25 AC 15 ms
7,764 KB
testcase_26 AC 14 ms
7,732 KB
testcase_27 AC 15 ms
7,924 KB
testcase_28 AC 14 ms
7,760 KB
testcase_29 AC 15 ms
7,864 KB
testcase_30 AC 15 ms
7,864 KB
testcase_31 AC 14 ms
7,920 KB
testcase_32 AC 15 ms
7,928 KB
testcase_33 AC 14 ms
7,816 KB
testcase_34 AC 15 ms
7,860 KB
testcase_35 AC 15 ms
7,920 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