{"trustable":false,"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\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e给你一个长度为n的递增序列ai。\u003c/p\u003e\n\u003cp\u003e若一个序列c所有i都满足c[i] \u003c c[i+1] \u003c\u003d c[i]*2,则称c序列为zq序列。\u003c/p\u003e\n\u003cp\u003e设b是a的一个子序列,请你求出当b序列是一个zq序列时,长度最大可能是多少。\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e第一行为数组长度n。\u003cp\u003e\n\u003cp\u003e第二行n个整数分别代表a_i。(1 \u003c\u003d n \u003c\u003d 200,000 , 1 \u003c\u003d a[i] \u003c\u003d 1,000,000,000)\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e当b序列是一个zq序列时,长度最大可能是多少。\u003c/p\u003e"}},{"title":"Sample In 1","value":{"format":"HTML","content":"\u003cpre\u003e10\u003cbr\u003e1 2 5 6 7 10 21 23 24 49\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Sampe Out 1","value":{"format":"HTML","content":"\u003cpre\u003e4\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Sample In 2","value":{"format":"HTML","content":" \u003cpre\u003e5\u003cbr\u003e2 10 50 110 250\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Sample Out 2","value":{"format":"HTML","content":" \u003cpre\u003e1\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Sample In 3","value":{"format":"HTML","content":" \u003cpre\u003e6\u003cbr\u003e4 7 12 100 150 199\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Sample Out 3","value":{"format":"HTML","content":" \u003cpre\u003e3\u003cbr\u003e\u003c/pre\u003e"}},{"title":"Note","value":{"format":"HTML","content":"样例一: b \u003d [5,6,7,10] \u003cbr\u003e\n样例三: b \u003d [4,7,12] 或 [100,150,199]"}}]}