結果
| 問題 | No.490 yukiソート |
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2017-06-14 22:23:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 874 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 483 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-12 03:22:01 |
| 合計ジャッジ時間 | 13,220 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
n = int(input())
a = list(map(int,input().split(' ')))
for i in range(1,2*n-3):
for j in range((i+1)//2):
if i - j < n and a[j] > a[i-j]:
a[j],a[i-j] = a[i-j],a[j]
print(*a)
h_noson