結果

問題 No.566 だいたい完全二分木
ユーザー mbanmban
提出日時 2017-09-09 11:49:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 63,744 KB
最終ジャッジ日時 2024-04-24 23:50:33
合計ジャッジ時間 1,630 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
53,888 KB
testcase_01 AC 46 ms
53,504 KB
testcase_02 AC 46 ms
53,888 KB
testcase_03 AC 46 ms
54,016 KB
testcase_04 AC 46 ms
53,632 KB
testcase_05 AC 47 ms
54,016 KB
testcase_06 AC 47 ms
54,016 KB
testcase_07 AC 57 ms
54,272 KB
testcase_08 AC 48 ms
54,144 KB
testcase_09 AC 56 ms
61,568 KB
testcase_10 AC 61 ms
63,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random;
k=int(input());

if k==2:
    print(1,3,2)

else:
    ans=list(range(1,2**k))
    random.shuffle(ans)
    print(" ".join(map(str,ans)))
0