tent><div>第一行n表示节点个数</div>
<div>接下来n行长度为n的字符串,g[i,j]='Y'表示i到j有一条边，g[i,j]='N'反之。</div>
<div>最后一行两个整数k，m。</div>
<div>&nbsp;n&lt;=100, &nbsp;k&lt;=10^6, &nbsp;m&lt;=10^9</div>
<p></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=conten