{"trustable":true,"prependHtml":"\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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eSilverland的人们使用方形硬币。它们不仅是方形的,而且它们的面值也是平方数。Silverland有所有平方数硬币的面值,直到289(\u003d17^2),即1个硬币、4个硬币、9个硬币,...,以及289个硬币。 \u003cbr\u003e有四种硬币组合可以支付十个硬币:\u003cbr\u003e\u003cbr\u003e十个1个硬币,\u003cbr\u003e一个4个硬币和六个1个硬币,\u003cbr\u003e两个4个硬币和两个1个硬币,以及\u003cbr\u003e一个9个硬币和一个1个硬币。\u003cbr\u003e\u003cbr\u003e你的任务是计算使用Silverland硬币支付给定金额的方法数量。\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"输入包括多行,每行包含一个整数,表示要支付的金额,然后是一个包含零的行。您可以假设所有金额都是正数且小于300。\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"对于给定的每个金额,应输出一行,其中包含一个整数,表示硬币组合的数量。输出中不应出现其他字符。\u003cbr\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\r\n10\r\n30\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n4\r\n27\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}