~~这题数据好造,随便偷个题解对拍就行。~~
by 天泽龟 @ 2019-10-22 23:03:59
@[天泽龟](/space/show?uid=15984) 拍出来错误数据了...调不出来呀..
`intput : 213 17371`
`my output : 6`
`std output : 5`
by jins3599 @ 2019-10-22 23:18:29
@[jins3599](/space/show?uid=134080) emm您试试一百以内能不能出错误解?这好调一点。。
by 天泽龟 @ 2019-10-22 23:22:35
@[jins3599](/space/show?uid=134080) $\sqrt b$有问题
by torque @ 2019-10-22 23:33:20
题解$i>=\sqrt b$
你的代码$i>=\left\lfloor\sqrt b\right\rfloor$
by torque @ 2019-10-22 23:35:12
@[六道仙人](/space/show?uid=118382)
但是我判断了他们是否同号了。
`if((2ll * i - a) * (b - i * i) < 0) continue; `
感觉不会出问题..?
by jins3599 @ 2019-10-22 23:36:33
@[jins3599](/space/show?uid=134080) 不是符号
by torque @ 2019-10-22 23:48:07
$\sqrt 3=1.7..$
理应从2开始枚举
```cpp
l = sqrt(b); r = a / 2;
```
导致``l=1``
by torque @ 2019-10-22 23:49:16
思路很水...
但是边界问题太恶心了...
by jins3599 @ 2019-10-23 13:21:36