tive; 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>4 6<br />
1 2 2 R<br />
2 4 3 G<br />
4 3 5 R<br />
3 1 7 G<br />
1 4 11 B<br />
2 3 13 B</span></div></code></pre></div><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>828</span></div></code