style="font-size: medium">&nbsp;&nbsp;&nbsp;&nbsp;第1行输入两个分开的整数N和J；接下来N行表示奶牛们在仓房中排队的顺序．用J和H表示</span></div>
<div><span style="font-size: medium">她们是J队和H队昀球迷．</span></div></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;"><div class=content><di