{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"Section1\"\u003e\r\n\t\u003cbr /\u003e\r\n\t\u003cp style\u003d\"text-align:justify\"\u003e\r\n\t\tIn an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior than other students. The professor of such a course has found quite a number of such students who came from senior classes (as if they came to attend the pre requisite course after passing an advanced course). But he wants to do justice to the new students. So, he is going to take a placement test (basically an IQ test) to assess the level of difference among the students. He wants to know the maximum amount of score that a senior student gets more than any junior student. For example, if a senior student gets 80 and a junior student gets 70, then this amount is 10. Be careful that we don\u0026#39;t want the absolute value. Help the professor to figure out a solution.\u003c/p\u003e\r\n\t\u003cp style\u003d\"text-align:justify\"\u003e\r\n\t\t\u003cb\u003e\u003cspan style\u003d\"font-size:16.0pt;font-family:\r\nArial\"\u003eInput\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\r\n\t\tInput consists of a number of test cases \u003cspan style\u003d\"mso-bidi-font-weight:\r\nbold\"\u003eT\u003c/span\u003e (less than 20). Each case starts with an integer \u003cspan style\u003d\"mso-bidi-font-weight:bold\"\u003en\u003c/span\u003e which is the number of students in the course. This value can be as large as 100,000 and as low as 2. Next \u003cspan style\u003d\"mso-bidi-font-weight:bold\"\u003en\u003c/span\u003e lines contain \u003cspan style\u003d\"mso-bidi-font-weight:bold\"\u003en\u003c/span\u003e integers where the \u003cspan class\u003d\"SpellE\"\u003e\u003ci\u003ei\u003c/i\u003e\u0026#39;th\u003c/span\u003e integer is the score of the \u003cspan class\u003d\"SpellE\"\u003e\u003ci\u003ei\u003c/i\u003e\u0026#39;th\u003c/span\u003e student. All these integers have absolute values less than 150000. If \u003cspan class\u003d\"SpellE\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e \u0026lt; \u003ci\u003ej\u003c/i\u003e, then \u003cspan class\u003d\"SpellE\"\u003e\u003ci\u003ei\u003c/i\u003e\u0026#39;th\u003c/span\u003e student is senior to the \u003cspan class\u003d\"SpellE\"\u003e\u003ci\u003ej\u003c/i\u003e\u0026#39;th\u003c/span\u003e student.\u003c/p\u003e\r\n\t\u003cp style\u003d\"text-align:justify\"\u003e\r\n\t\t\u003cb\u003e\u003cspan style\u003d\"font-size:16.0pt;font-family:\r\nArial\"\u003eOutput\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\r\n\t\tFor each test \u003cspan class\u003d\"GramE\"\u003ecase,\u003c/span\u003e output the desired number in a new line. Follow the format shown in sample input-output section.\u003c/p\u003e\r\n\t\u003ch1\u003e\r\n\t\t\u003cb\u003e\u003cspan style\u003d\"font-size:16.0pt;font-family:Arial;font-style:normal\"\u003eSample Input\u003cspan style\u003d\"mso-spacerun:yes\"\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003c/span\u003eOutput for Sample Input\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/h1\u003e\r\n\t\u003ctable border\u003d\"1\" cellpadding\u003d\"0\" cellspacing\u003d\"0\" class\u003d\"MsoNormalTable\" style\u003d\"background:#CCCCCC;border-collapse:collapse;border:none;mso-border-alt:\r\n solid windowtext .5pt;mso-padding-alt:0in 5.4pt 0in 5.4pt\"\u003e\r\n\t\t\u003ctbody\u003e\r\n\t\t\t\u003ctr style\u003d\"mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes\"\u003e\r\n\t\t\t\t\u003ctd style\u003d\"width:3.2in;border:solid windowtext 1.0pt;\r\n mso-border-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt\" valign\u003d\"top\" width\u003d\"307\"\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e3\r\n\r\n2\r\n\r\n100\r\n\r\n20\r\n\r\n4\r\n\r\n4\r\n\r\n3\r\n\r\n2\r\n\r\n1\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e4\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e1\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e2\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e3\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt\"\u003e4\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\t\u003cpre\u003e\u003cb\u003e\u003cspan style\u003d\"mso-bidi-font-size:12.0pt\"\u003e\u003co:p\u003e\u0026nbsp;\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/pre\u003e\r\n\t\t\t\t\u003c/td\u003e\r\n\t\t\t\t\u003ctd style\u003d\"width:231.85pt;border:solid windowtext 1.0pt;\r\n border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:\r\n solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt\" valign\u003d\"top\" width\u003d\"309\"\u003e\r\n\t\t\t\t\t\u003cp\u003e\r\n\t\t\t\t\t\t\u003cb style\u003d\"mso-bidi-font-weight:normal\"\u003e\u003cspan style\u003d\"font-size:11.0pt;\r\n font-family:\u0026quot;Courier New\u0026quot;\"\u003e80\u003cbr /\u003e\r\n\t\t\t\t\t\t3\u003cbr /\u003e\r\n\t\t\t\t\t\t-1\u003cspan style\u003d\"mso-spacerun:yes\"\u003e \u003c/span\u003e\u003co:p\u003e\u003c/o:p\u003e\u003c/span\u003e\u003c/b\u003e\u003c/p\u003e\r\n\t\t\t\t\u003c/td\u003e\r\n\t\t\t\u003c/tr\u003e\r\n\t\t\u003c/tbody\u003e\r\n\t\u003c/table\u003e\r\n\t\u003cdiv align\u003d\"center\" class\u003d\"MsoNormal\" style\u003d\"text-align:center\"\u003e\r\n\t\t\u003chr align\u003d\"center\" size\u003d\"2\" width\u003d\"100%\" /\u003e\r\n\t\u003c/div\u003e\r\n\t\u003cp class\u003d\"MsoNormal\"\u003e\r\n\t\t\u003cspan class\u003d\"SpellE\"\u003eProblemsetter\u003c/span\u003e: Mohammad \u003cspan class\u003d\"SpellE\"\u003eSajjad\u003c/span\u003e \u003cspan class\u003d\"SpellE\"\u003eHossain\u003c/span\u003e\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\"\u003e\r\n\t\tSpecial Thanks: Shahriar Manzoor\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\"\u003e\r\n\t\t\u003co:p\u003e\u0026nbsp;\u003c/o:p\u003e\u003c/p\u003e\r\n\u003c/div\u003e"}}]}