{"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\"\u003e\u0026nbsp;\u0026nbsp;现在给你一个数字 N,和一个 M-整数集合,你需要找出有多少个小于 N 的整数,它们可以被集合中的任意整数整除。例如,N\u003d12,M-整数集合为 {2,3},那么另一个集合为 {2,3,4,6,8,9,10},集合中的所有整数都可以被 2 或 3 整除。因此,你只需输出数字 7。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u0026nbsp;\u0026nbsp;有很多测试用例。对于每个测试用例,第一行包含两个整数 N 和 M。接下来一行包含 M 个整数,它们互不相同。0\u0026lt;N\u0026lt;2^31,0\u0026lt;M\u0026lt;\u003d10,且这 M 个整数是非负的且不超过 20。"}},{"title":"输出","value":{"format":"HTML","content":"\u0026nbsp;\u0026nbsp;对于每个测试用例,输出一个数字。"}},{"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\u003e12 2\r\n2 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e7\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}