結果

問題 No.490 yukiソート
ユーザー kiricreamcheesekiricreamcheese
提出日時 2017-03-10 23:06:21
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 6,500 KB
最終ジャッジ日時 2023-09-06 15:57:01
合計ジャッジ時間 17,898 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,960 KB
testcase_01 AC 10 ms
6,012 KB
testcase_02 AC 10 ms
5,932 KB
testcase_03 AC 10 ms
5,988 KB
testcase_04 AC 47 ms
6,092 KB
testcase_05 AC 44 ms
6,060 KB
testcase_06 AC 45 ms
6,124 KB
testcase_07 AC 45 ms
6,112 KB
testcase_08 AC 45 ms
6,060 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 45 ms
6,108 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 11 ms
5,928 KB
testcase_25 AC 11 ms
6,012 KB
testcase_26 WA -
testcase_27 AC 10 ms
6,084 KB
testcase_28 AC 11 ms
6,048 KB
testcase_29 WA -
testcase_30 AC 11 ms
6,084 KB
testcase_31 WA -
testcase_32 AC 10 ms
6,028 KB
testcase_33 WA -
testcase_34 AC 10 ms
5,964 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

n=input()
a_list=map(int,raw_input().split(" "))
buf=0

for i in range(1,2*n-3):
    for p in range(n-1):
        q=i-p
        if p<q and q<+n-1:
            if a_list[p]>a_list[q]:
                buf=a_list[p]
                a_list[p]=a_list[q]
                a_list[q]=buf

print " ".join(map(str,a_list))
0