結果
| 問題 |
No.490 yukiソート
|
| ユーザー |
|
| 提出日時 | 2023-09-01 20:57:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 240 bytes |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 66,176 KB |
| 最終ジャッジ日時 | 2025-01-03 07:01:33 |
| 合計ジャッジ時間 | 4,101 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 21 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
for i in range(1, 2 * n - 2):
for p in range(i):
q = i - p
if p < q and p < n and q < n:
if a[p] > a[q]:
a[p], a[q] = a[q], a[p]
print(*a)