結果

問題 No.490 yukiソート
ユーザー JunOnumaJunOnuma
提出日時 2017-06-09 15:28:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,066 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 869 ms
コンパイル使用メモリ 7,084 KB
実行使用メモリ 6,744 KB
最終ジャッジ日時 2023-10-23 20:52:40
合計ジャッジ時間 12,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,436 KB
testcase_01 AC 10 ms
6,436 KB
testcase_02 AC 10 ms
6,436 KB
testcase_03 AC 10 ms
6,436 KB
testcase_04 AC 34 ms
6,444 KB
testcase_05 AC 33 ms
6,444 KB
testcase_06 AC 33 ms
6,444 KB
testcase_07 AC 33 ms
6,444 KB
testcase_08 AC 34 ms
6,444 KB
testcase_09 AC 33 ms
6,444 KB
testcase_10 AC 33 ms
6,444 KB
testcase_11 AC 34 ms
6,444 KB
testcase_12 AC 34 ms
6,444 KB
testcase_13 AC 34 ms
6,444 KB
testcase_14 AC 1,060 ms
6,744 KB
testcase_15 AC 1,065 ms
6,744 KB
testcase_16 AC 1,058 ms
6,744 KB
testcase_17 AC 1,066 ms
6,744 KB
testcase_18 AC 1,057 ms
6,744 KB
testcase_19 AC 1,064 ms
6,744 KB
testcase_20 AC 1,064 ms
6,744 KB
testcase_21 AC 1,061 ms
6,744 KB
testcase_22 AC 1,059 ms
6,744 KB
testcase_23 AC 1,063 ms
6,744 KB
testcase_24 AC 11 ms
6,436 KB
testcase_25 AC 10 ms
6,436 KB
testcase_26 AC 10 ms
6,436 KB
testcase_27 AC 10 ms
6,436 KB
testcase_28 AC 10 ms
6,436 KB
testcase_29 AC 10 ms
6,436 KB
testcase_30 AC 10 ms
6,436 KB
testcase_31 AC 10 ms
6,436 KB
testcase_32 AC 10 ms
6,436 KB
testcase_33 AC 10 ms
6,436 KB
testcase_34 AC 10 ms
6,436 KB
testcase_35 AC 10 ms
6,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
l = map(int, raw_input().split())
for i in range(2*n-3):
    for p in range(n-1):
        q = i - p
        if q >= n:
            continue
        if p >= q:
            break
        if l[p] > l[q]:
            t = l[p]
            l[p] = l[q]
            l[q] = t
print ' '.join(map(str,l))
0