;"><div class=content><p><span style="font-size: medium">* Line 1: A single integer: N </span></p>
<p><span style="font-size: medium">* Lines 2..N+1: Input line i+1 describes building i with three space-separated integers: A_i, B_i, and H_i</span></p></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><p><span sty