結果

問題 No.566 だいたい完全二分木
ユーザー pluto77pluto77
提出日時 2017-09-26 09:52:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-04-27 14:16:34
合計ジャッジ時間 958 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,912 KB
testcase_01 AC 15 ms
7,168 KB
testcase_02 AC 15 ms
7,168 KB
testcase_03 AC 15 ms
7,040 KB
testcase_04 AC 15 ms
7,168 KB
testcase_05 AC 15 ms
7,040 KB
testcase_06 AC 14 ms
7,168 KB
testcase_07 AC 14 ms
7,040 KB
testcase_08 AC 15 ms
7,040 KB
testcase_09 AC 15 ms
7,168 KB
testcase_10 AC 16 ms
7,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_566
import random

k=int(raw_input())
n=2**k
l=[i for i in xrange(1,n)]
if n>4:
 random.shuffle(l)
print ' '.join(map(str,l))
0