ttached segment font-content"><div style="position: relative; overflow: hidden;"><div class=content><div>There are at most 10000 testcases.</div>
<div>For each testcase, only four space-separated integers, n,m,x,y(1&lt;=n,m&lt;=10^8,n&times;m&gt;1,1 &lt; = x &lt; = n,1&lt; = y &lt; =m).</div>
<div>&nbsp;</div>
<div></div>
<div></div>
<div></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 atta