結果
問題 | No.490 yukiソート |
ユーザー |
|
提出日時 | 2018-12-21 13:31:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 326 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-09-25 09:23:17 |
合計ジャッジ時間 | 3,780 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 2 TLE * 1 -- * 31 |
ソースコード
n = int(input()) sq = list(map(int, input().split())) for i in range(1,2*n-3): j = 0 while i >= 0: if j < i <= n-1: if sq[j]>sq[i]: sq[j],sq[i] = sq[i],sq[j] j += 1 i -= 1 print(" ".join([str(i) for i in sq]))