问的答案。最后一个询问不输出换行符</p></div></div></div></div></div><div class="row"><div class="column"><h4 class="ui top attached block header">样例</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><h4>样例输入</h4><div class="ui existing segment"><pre style="margin-top:0; margin-bottom:0;"><code class="lang-plain">
			<div class=content><span class=sampledata>8 5<br />
105 2 9 3 8 5 7 7<br />
1 2<br />
1 3<br />
1 4<br 