結果
問題 | No.490 yukiソート |
ユーザー | JunOnuma |
提出日時 | 2017-06-09 15:28:42 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 1,068 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 14:28:30 |
合計ジャッジ時間 | 12,215 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
n = int(raw_input()) l = map(int, raw_input().split()) for i in range(2*n-3): for p in range(n-1): q = i - p if q >= n: continue if p >= q: break if l[p] > l[q]: t = l[p] l[p] = l[q] l[q] = t print ' '.join(map(str,l))