結果
| 問題 | No.490 yukiソート |
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2017-06-14 22:23:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,273 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 789 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-24 23:27:59 |
| 合計ジャッジ時間 | 15,047 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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