結果
| 問題 |
No.490 yukiソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-13 23:08:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-28 10:45:28 |
| 合計ジャッジ時間 | 15,757 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 TLE * 10 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
for i in range(0, 2 * n - 3):
for p in range(n):
q = i - p
if 0 <= p and p < q and q <= n - 1:
if a[p] > a[q]:
a[p], a[q] = a[q], a[p]
print(" ".join(map(str, a)))