結果

問題 No.490 yukiソート
ユーザー hanorverhanorver
提出日時 2017-03-10 22:36:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 8,536 KB
最終ジャッジ日時 2023-09-06 15:41:44
合計ジャッジ時間 13,666 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,964 KB
testcase_01 AC 16 ms
7,844 KB
testcase_02 AC 15 ms
7,908 KB
testcase_03 AC 14 ms
7,864 KB
testcase_04 AC 38 ms
7,752 KB
testcase_05 WA -
testcase_06 AC 41 ms
7,764 KB
testcase_07 WA -
testcase_08 AC 38 ms
7,912 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 40 ms
7,936 KB
testcase_12 AC 39 ms
7,772 KB
testcase_13 AC 38 ms
7,764 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 1,165 ms
8,336 KB
testcase_19 WA -
testcase_20 AC 1,180 ms
8,340 KB
testcase_21 WA -
testcase_22 AC 1,089 ms
8,444 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 15 ms
7,812 KB
testcase_26 AC 16 ms
7,964 KB
testcase_27 AC 16 ms
7,912 KB
testcase_28 AC 16 ms
7,780 KB
testcase_29 AC 15 ms
7,960 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 15 ms
7,804 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 15 ms
7,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input());a=list(map(int,input().split()))
for i in range(2*n-3):
 a[0:i]
 for p in range(i//2):
  q=i-p
  if q<n and a[p]>a[q]:a[p],a[q]=a[q],a[p]
print(*a)
0