{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e蒜头君是洋葱王国的首席科学家,他有一个仪器可以用任意原子合成新的分子。现在一共有 $10$ 种可供选择的原子,每种原子必须使用 $1$、$2$、$3$ 个,总的原子个数规定是 $n$。蒜头君想请你帮忙计算,一共能合成多少个不同的分子(不考虑同分异构体)?\u003c/p\u003e\u003ch3\u003e输入格式\u003c/h3\u003e\u003cp\u003e一个整数 $n\\ (1 \\le n \\le 50)$,表示新分子的原子总个数。\u003c/p\u003e\u003ch3\u003e输出格式\u003c/h3\u003e\u003cp\u003e第一行一个整数 $m$,表示不同的方案数。\u003c/p\u003e\u003cp\u003e接下来 $m$ 行,每行为一种方案,包含 $10$ 个整数,表示每种原子的个数。\u003c/p\u003e\u003cp\u003e方案按字典序从小到大输出。\u003c/p\u003e"}},{"title":"Sample 1","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\u003e29\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e10\n2 3 3 3 3 3 3 3 3 3\n3 2 3 3 3 3 3 3 3 3\n3 3 2 3 3 3 3 3 3 3\n3 3 3 2 3 3 3 3 3 3\n3 3 3 3 2 3 3 3 3 3\n3 3 3 3 3 2 3 3 3 3\n3 3 3 3 3 3 2 3 3 3\n3 3 3 3 3 3 3 2 3 3\n3 3 3 3 3 3 3 3 2 3\n3 3 3 3 3 3 3 3 3 2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cbr /\u003e"}}]}