of cows from her gang that could be on the field at the end. Output this number and the lexicographically earliest ordering of cows that results in this number of cows from Bessie's gang at the end. An ordering X is said to be lexicographically earlier than Y if there is some k such that X[k] &lt; Y[k] and X[i] = Y[i] for i &lt; k.&nbsp;</span></p>
<p><span style="font-size: medium"><font face="System">n头牛结成了m个帮派，现在它们争夺一块草地。每个单位时间内会有一头牛来。�