{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003e\r\nJack claims that he has telekinetic powers.\r\nHe has made a bet with Mike that he would throw a die n times and would get exactly k pips in total.\r\nJack\u0027s die has 6 faces with numbers from 1 to 6 written on them and is perfectly symmetric.\r\nMike does not believe in Jack\u0027s telekinetic powers (in general, being a tenacious rationalist,\r\nhe does not believe in telekinesis), but he is concerned that Jack could win the bet\r\nsimply by luck.\r\nTherefore, he would like to know what is the chance (in percent) of such an unlucky event,\r\nand asked you to write a program that would help him solve this problem.\r\n\u003c/p\u003e\r\n \u003ch2\u003eInput\u003c/h2\u003e\r\n\u003cp\u003e\r\nThe first line of the standard input contains a single integer t (1 ≤ t ≤ 20) denoting the number of\r\ntest cases.\r\nEach of the following t lines contains a description of one test case in the form of two integers n\u003csub\u003ei\u003c/sub\u003e and k\u003csub\u003ei\u003c/sub\u003e\r\n\r\n(1 ≤ n\u003csub\u003ei\u003c/sub\u003e, k\u003csub\u003ei\u003c/sub\u003e ≤ 10\u003csup\u003e6\u003c/sup\u003e) separated by a single space.\r\n\u003c/p\u003e\r\n\t\r\n \u003ch2\u003eOutput\u003c/h2\u003e\r\n \u003cp\u003e\r\nTo the standard output t lines should be written, containing the answers to respective test cases.\r\nThe answer to one test case is the probability (in percent) that Jack wins the bet, rounded \u003ci\u003edown\u003c/i\u003e\r\nto the nearest integer.\r\n\u003c/p\u003e\r\n\r\n\u003ch2\u003eExample\u003c/h2\u003e\r\n\r\n\u003cp\u003eFor the input data:\u003c/p\u003e\u003cpre\u003e1\r\n1 6\u003c/pre\u003e\r\n\u003cp\u003ethe correct result is:\u003c/p\u003e\u003cpre\u003e16\u003c/pre\u003e\r\n\r\n\u003cp\u003e\u003ci\u003eTask author: Jakub Onufry Wojtaszczyk.\u003c/i\u003e\u003c/p\u003e\r\n\u003c/div\u003e"}}]}