結果
| 問題 |
No.490 yukiソート
|
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2017-03-13 07:35:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-30 00:38:33 |
| 合計ジャッジ時間 | 8,005 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 19 WA * 15 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
for i in range(1, 2*n-3):
for p in range(max(0, i-n+1), i//2):
q = i - p
if a[p] > a[q]:
a[p], a[q] = a[q], a[p]
for _ in a:
print(_, end=' ')
print()
compass19