述</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><div><span style="font-size: medium">&nbsp;&nbsp;约翰有N(2&le;N&le;1500)头奶牛，S(N&le;S&le;1,000,000)个一字排开的牛棚．相邻牛棚间的距离恰好为1．</span></div>
<div style="text-indent: 11.25pt"><span style="font-size: medium">奶牛们已经回棚休息，第i只奶牛现在待在牛棚Pi．如果两只奶牛离得太近，会让奶牛们变得很暴躁．所以约翰�