結果

問題 No.490 yukiソート
ユーザー No
提出日時 2017-05-21 18:23:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,824 KB
最終ジャッジ日時 2024-09-19 08:09:51
合計ジャッジ時間 3,849 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other AC * 3 WA * 1 TLE * 1 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
f = 2 * n - 3 + 1

for i in range(f):
    for p in range(n - 1):
        for q in range(p + 1,n):
            if a[p] > a[q]:
                w = a[p]
                a[p] = a[q]
                a[q] = w

ans = ""
for j in a:
    ans += str(j) + " "
print(ans[:-1])
0