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><p>第一行是两个整数n，cost，分别指天数和额外费用。 然后是n+1行，第i+1行是三个用空格格开的数：w[i]，c[i]，d[i]。</p></div></div></div></div></div><div class="row"><div class="column"><h4 class="ui top attached block header">输出格式</h4><div cla