{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"asd"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003eLine 1: Two space-separated integers, \u003ci\u003eN\u003c/i\u003e and \u003ci\u003eQ\u003c/i\u003e.\n\u003cbr\u003eLines 2..\u003ci\u003eN\u003c/i\u003e+1: Line \u003ci\u003ei\u003c/i\u003e+1 contains a single integer that is the height of cow \u003ci\u003ei\u003c/i\u003e\n\u003cbr\u003eLines \u003ci\u003eN\u003c/i\u003e+2..\u003ci\u003eN\u003c/i\u003e+\u003ci\u003eQ\u003c/i\u003e+1: Two integers \u003ci\u003eA\u003c/i\u003e and \u003ci\u003eB\u003c/i\u003e (1 ≤ \u003ci\u003eA\u003c/i\u003e ≤ \u003ci\u003eB\u003c/i\u003e ≤ \u003ci\u003eN\u003c/i\u003e), representing the range of cows from \u003ci\u003eA\u003c/i\u003e to \u003ci\u003eB\u003c/i\u003e inclusive.\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003eLines 1..\u003ci\u003eQ\u003c/i\u003e: Each line contains a single integer that is a response to a reply and indicates the difference in height between the tallest and shortest cow in the range.\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e6 3\n1\n7\n3\n4\n2\n5\n1 5\n4 6\n2 2\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e6\n3\n0\u003c/pre\u003e"}}]}