結果
| 問題 | No.490 yukiソート |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-09 06:32:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 2,000 ms |
| + 238µs | |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 95,972 KB |
| 実行使用メモリ | 84,224 KB |
| 最終ジャッジ日時 | 2026-08-09 15:55:00 |
| 合計ジャッジ時間 | 4,674 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
n = int(input())
*a, = map(int,input().split())
for i in range(1,2*n-3):
for p in range(min(n,i+1)):
q = i-p
if q >= n: continue
if p >= q: break
if a[p] > a[q]:
a[p],a[q] = a[q],a[p]
print(*a)
convexineq