{"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 \u003cstrong\u003e给出\u003c/strong\u003e\u003cstrong\u003eN\u003c/strong\u003e\u003cstrong\u003e(\u003c/strong\u003e\u003cstrong\u003e\u0026lt;\u003d10^6\u003c/strong\u003e\u003cstrong\u003e)个数,每个数\u003c/strong\u003e\u003cstrong\u003e\u0026lt;\u003d10^6. \u003c/strong\u003e\u003cspan\u003e\u003cstrong\u003e从中选出至少\u003c/strong\u003e\u003cstrong\u003e1\u003c/strong\u003e\u003cstrong\u003e个数,易知有\u003c/strong\u003e\u003cstrong\u003e2\u003c/strong\u003e\u003c/span\u003e\u003cstrong\u003e^N-1\u003c/strong\u003e\u003cstrong\u003e种不同方案。那么在这些方案中,有多少种满足选出的所有数\u003c/strong\u003e\u003cstrong\u003eAND\u003c/strong\u003e\u003cstrong\u003e起来为\u003c/strong\u003e\u003cstrong\u003e0\u003c/strong\u003e\u003cstrong\u003e呢?\u003c/strong\u003e\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e \u003cspan\u003e\u003cstrong\u003e第一行一个数\u003c/strong\u003e\u003cstrong\u003eN\u003c/strong\u003e\u003cstrong\u003e,接下来一行\u003c/strong\u003e\u003cstrong\u003eN\u003c/strong\u003e\u003cstrong\u003e个数,含义如上。\u003c/strong\u003e\u003c/span\u003e\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e \u003cspan\u003e\u003cstrong\u003e一行一个正整数,方案数\u003c/strong\u003e\u003cstrong\u003emod\u003c/strong\u003e\u003c/span\u003e\u003cstrong\u003e 10^9+7.\u003c/strong\u003e\u003c/p\u003e"}},{"title":"Example","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e \n \u003cp\u003e \u0026nbsp;\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eInput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e3\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e2 3 3\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eOutput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e0\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eInput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e4\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e0 1 2 3\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eOutput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e10\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eInput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e6\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e5 2 0 5 2 1\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003eOutput\u003c/strong\u003e\u003c/p\u003e \n \u003cp\u003e \u003cstrong\u003e53\u003c/strong\u003e\u003c/p\u003e \n \u003c/div\u003e \n\u003c/div\u003e"}}]}