結果

問題 No.566 だいたい完全二分木
ユーザー mokraimokrai
提出日時 2017-12-03 21:34:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,988 KB
最終ジャッジ日時 2023-08-19 02:04:32
合計ジャッジ時間 1,127 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,840 KB
testcase_01 AC 17 ms
8,840 KB
testcase_02 AC 16 ms
8,720 KB
testcase_03 AC 16 ms
8,688 KB
testcase_04 AC 16 ms
8,852 KB
testcase_05 AC 15 ms
8,768 KB
testcase_06 AC 18 ms
8,708 KB
testcase_07 AC 16 ms
8,872 KB
testcase_08 AC 18 ms
8,936 KB
testcase_09 AC 18 ms
8,924 KB
testcase_10 AC 21 ms
8,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random

def main():
    N = int(input())
    l = list(range(1, 2 ** N))
    random.shuffle(l)
    while l[0] == 1:
        random.shuffle(l)

    for i in l:
        print(i, end='')
        print(" ", end='')
    print()

if __name__ == '__main__':
    main()
0