結果

問題 No.490 yukiソート
ユーザー 💕💖💞💕💖💞
提出日時 2017-04-01 19:12:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 526 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 76,900 KB
最終ジャッジ日時 2023-09-22 02:09:30
合計ジャッジ時間 4,889 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,408 KB
testcase_01 AC 72 ms
71,248 KB
testcase_02 AC 73 ms
71,128 KB
testcase_03 AC 77 ms
71,520 KB
testcase_04 AC 83 ms
76,368 KB
testcase_05 AC 81 ms
76,208 KB
testcase_06 AC 82 ms
76,528 KB
testcase_07 AC 83 ms
76,532 KB
testcase_08 AC 83 ms
76,492 KB
testcase_09 AC 81 ms
76,612 KB
testcase_10 AC 80 ms
76,140 KB
testcase_11 AC 81 ms
76,096 KB
testcase_12 AC 82 ms
76,364 KB
testcase_13 AC 83 ms
76,348 KB
testcase_14 AC 112 ms
76,740 KB
testcase_15 AC 110 ms
76,632 KB
testcase_16 AC 111 ms
76,764 KB
testcase_17 AC 113 ms
76,652 KB
testcase_18 AC 110 ms
76,636 KB
testcase_19 AC 112 ms
76,852 KB
testcase_20 AC 110 ms
76,604 KB
testcase_21 AC 109 ms
76,900 KB
testcase_22 AC 110 ms
76,548 KB
testcase_23 AC 110 ms
76,632 KB
testcase_24 AC 73 ms
71,392 KB
testcase_25 AC 73 ms
71,276 KB
testcase_26 AC 71 ms
71,484 KB
testcase_27 AC 73 ms
71,544 KB
testcase_28 AC 73 ms
71,516 KB
testcase_29 AC 72 ms
71,332 KB
testcase_30 AC 74 ms
71,276 KB
testcase_31 AC 75 ms
71,328 KB
testcase_32 AC 73 ms
71,500 KB
testcase_33 AC 72 ms
71,552 KB
testcase_34 AC 73 ms
71,328 KB
testcase_35 AC 73 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
targets = list(map(int, input().split()))

for i in range(1, 2*n-3 ):
  for p in range(i):
    q = i - p
    if n <= q: continue
    if p >= q: break
    if targets[p] > targets[q]:
      targets[p], targets[q] = targets[q], targets[p]

print(' '.join(list(map(str,targets))))
0