{"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\"\u003eProfessor Zhang has a number sequence $a_1,a_2,...,a_n$. However, the sequence is not complete and some elements are missing. Fortunately, Professor Zhang remembers some properties of the sequence:\u003cbr\u003e\u003cbr\u003e1. For every $i \\in \\{1,2,...,n\\}$, $0 \\le a_i \\le 100$.\u003cbr\u003e2. The sequence is non-increasing, i.e. $a_1 \\ge a_2 \\ge ... \\ge a_n$.\u003cbr\u003e3. The sum of all elements in the sequence is not zero.\u003cbr\u003e\u003cbr\u003eProfessor Zhang wants to know the maximum value of $\\frac{a_1+a_2}{\\sum_{i\u003d1}^{n}{a_i}}$ among all the possible sequences.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"There are multiple test cases. The first line of input contains an integer $T$, indicating the number of test cases. For each test case:\u003cbr\u003e\u003cbr\u003eThe first contains two integers $n$ and $m$ $(2 \\le n \\le 100, 0 \\le m \\le n)$ -- the length of the sequence and the number of known elements.\u003cbr\u003e\u003cbr\u003eIn the next $m$ lines, each contains two integers $x_i$ and $y_i$ $(1 \\le x_i \\le n, 0 \\le y_i \\le 100, x_i \u0026lt; x_{i+1}, y_i \\ge y_{i+1})$, indicating that $a_{x_i} \u003d y_i$."}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output the answer as an irreducible fraction \"$p$/$q$\", where $p$, $q$ are integers, $q \u0026gt; 0$."}},{"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\r\n2 0\r\n3 1\r\n3 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1/1\r\n200/201\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}