結果
問題 |
No.490 yukiソート
|
ユーザー |
![]() |
提出日時 | 2018-04-01 17:29:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 115 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 593 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 63,744 KB |
最終ジャッジ日時 | 2024-06-26 05:43:30 |
合計ジャッジ時間 | 4,082 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
n = int(input().strip()) a = [int(i) for i in input().strip().split(" ")] for i in range(1, 2*n-3): for p in range(i+1): q = i - p if p > q or q >= n: continue if a[p] > a[q]: tmp = a[q] a[q] = a[p] a[p] = tmp print(" ".join([str(i) for i in a]))