```
1036
1
```
```
1040
```
https://www.luogu.com.cn/blog/zcusss/solution-p1731
https://www.luogu.com.cn/blog/user24922/solution-p1731
https://www.luogu.com.cn/blog/user59424/solution-p1731
https://www.luogu.com.cn/blog/210322de/solution-p1731
https://www.luogu.com.cn/blog/cwr/solution-p1731
https://www.luogu.com.cn/blog/danni---sd/solution-p1731
https://www.luogu.com.cn/blog/yhzq/solution-p1731
by UFOI @ 2024-01-11 16:19:08
另外,经 [assert](https://www.luogu.com.cn/record/142501853),本题nm数据范围下界均为1,请求补充这一点。
@[realskc](/user/35672) @[installb](/user/31440)
by UFOI @ 2024-01-11 16:20:34
> 除 $Q$ 外,以上所有数据皆为正整数
其实不补充下界也不会存在问题的。
by cjh20090318 @ 2024-01-11 16:24:49
确实,不补充也行
by UFOI @ 2024-01-11 16:27:39
@[PDOI](/user/777756) 已添加数据
by installb @ 2024-01-11 20:19:36