{"trustable":false,"sections":[{"title":"Description","value":{"format":"MD","content":" 给定一个序列,对于所有的i\u003e\u003dk,输出序列中[i-k+1,i]内的最大值和最小值。"}},{"title":"Input","value":{"format":"MD","content":"第一行两个整数n和k。\n第二行n个整数,表示序列。\nn \u003c\u003d 10^6."}},{"title":"Output","value":{"format":"MD","content":"输出两个行,第一行表示最小值。第二行表示最大值。"}},{"title":"Sample Input","value":{"format":"MD","content":"8 3\n1 3 -1 -3 5 3 6 7"}},{"title":"Sample Output","value":{"format":"MD","content":"-1 -3 -3 -3 3 3\n3 3 5 5 6 7"}}]}