結果

問題 No.490 yukiソート
ユーザー ああいい
提出日時 2022-05-17 19:22:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 65,792 KB
最終ジャッジ日時 2024-09-15 14:34:32
合計ジャッジ時間 3,617 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

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