��</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;">求3<=(3*x) Mod 5<=4的最小正整数解
</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>第一行一个整数。T代表数据组数。
接下来T行，每行4个数，M，D，L，R表示L<=(D*x Mod M)<=R