結果
| 問題 |
No.490 yukiソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-14 20:58:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 17,824 KB |
| 最終ジャッジ日時 | 2024-09-24 08:59:23 |
| 合計ジャッジ時間 | 27,209 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 4 TLE * 11 -- * 19 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
for i in range(2 * n - 3):
for k in range(min(i + 1, n)):
for j in range(k + 1, min(i + 1, n)):
if k + j == i and a[k] > a[j]:
a[k], a[j] = a[j], a[k]
print(" ".join(map(str, a)))