{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"Find the number of trailing zeroes for the following function:\n\n\u003cdiv class\u003d\"centerme\"\u003e\n\n$$\\binom{n}{r} \\times p^q$$\n\t\n\u003c/div\u003e\n\nwhere **n, r, p, q** are given as Input."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026le; 10000)**, denoting the number of test cases.\n\nEach case contains four integers: **n, r, p, q (1 \u0026le; n, r, p, q \u0026le; 10\u003csup\u003e6\u003c/sup\u003e, r \u0026le; n)**."}},{"title":"Output","value":{"format":"MD","content":"For each test case, print the case number and the number of trailing zeroes."}},{"title":"Sample","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\n10 4 1 1\n100 5 40 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 1\nCase 2: 6\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"MD","content":"For case 1, **n \u003d 10, r \u003d 4, p \u003d 1, q \u003d 1**, then the result is **210** and number of trailing zeroes is 1."}}]}