結果

問題 No.490 yukiソート
ユーザー first_vilfirst_vil
提出日時 2021-11-15 09:04:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 85,860 KB
実行使用メモリ 76,520 KB
最終ジャッジ日時 2023-08-20 22:32:24
合計ジャッジ時間 6,495 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,324 KB
testcase_01 AC 74 ms
70,824 KB
testcase_02 AC 73 ms
70,936 KB
testcase_03 AC 73 ms
71,288 KB
testcase_04 AC 84 ms
75,968 KB
testcase_05 AC 85 ms
75,972 KB
testcase_06 AC 85 ms
75,776 KB
testcase_07 AC 84 ms
75,884 KB
testcase_08 AC 84 ms
76,024 KB
testcase_09 AC 84 ms
76,140 KB
testcase_10 AC 85 ms
75,788 KB
testcase_11 AC 84 ms
76,000 KB
testcase_12 AC 83 ms
76,096 KB
testcase_13 AC 84 ms
76,044 KB
testcase_14 AC 125 ms
76,292 KB
testcase_15 AC 127 ms
76,292 KB
testcase_16 AC 126 ms
76,520 KB
testcase_17 AC 126 ms
76,296 KB
testcase_18 AC 127 ms
76,520 KB
testcase_19 AC 124 ms
76,288 KB
testcase_20 AC 125 ms
76,400 KB
testcase_21 AC 125 ms
76,512 KB
testcase_22 AC 126 ms
76,212 KB
testcase_23 AC 126 ms
76,380 KB
testcase_24 AC 72 ms
71,204 KB
testcase_25 AC 73 ms
71,004 KB
testcase_26 AC 73 ms
71,296 KB
testcase_27 AC 73 ms
71,296 KB
testcase_28 AC 74 ms
71,328 KB
testcase_29 AC 75 ms
71,212 KB
testcase_30 AC 74 ms
71,088 KB
testcase_31 AC 75 ms
71,052 KB
testcase_32 AC 74 ms
71,196 KB
testcase_33 AC 73 ms
71,052 KB
testcase_34 AC 74 ms
71,180 KB
testcase_35 AC 77 ms
71,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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