{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e一个二叉树 $$$T$$$ 被称为 \u003cspan class\u003d\"tex-font-style-bf\"\u003e超平衡\u003c/span\u003e,如果 $$$T$$$ 为空或同时满足以下三个条件:\u003c/p\u003e\u003col\u003e \u003cli\u003e $$$T$$$ 的左子树是超平衡的。 \u003c/li\u003e\u003cli\u003e $$$T$$$ 的右子树是超平衡的。 \u003c/li\u003e\u003cli\u003e 左子树和右子树的节点数之差最多为 $$$1$$$。 \u003c/li\u003e\u003c/ol\u003e\u003cp\u003e请计算由 $$$n$$$ 个节点组成的 \u003cspan class\u003d\"tex-font-style-bf\"\u003e超平衡\u003c/span\u003e 树的数量。由于答案可能非常大,因此请输出答案对 $$$2^{64}$$$ 取模的结果。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数 $$$T$$$ ($$$1\\le T\\le 10^6$$$),表示测试用例的数量。 \u003c/p\u003e\u003cp\u003e每个测试用例包含一个整数 $$$n$$$ ($$$0 \\le n \u0026lt; 2 ^{64}$$$),表示树中的节点数。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,输出一个整数,表示由 $$$n$$$ 个节点组成的超平衡树的数量。\u003c/p\u003e"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n2\n3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}