#B3878. [信息与未来 2015] 连续数的和
[信息与未来 2015] 连续数的和
题目描述
给出两个整数 和 ,求出 中连续 个数的和为完全平方数的个数。
输入格式
一行两个整数 。
输出格式
一行一个整数,即 中连续 个数的和为平方数的个数。
提示
样例解释
在 中,连续 个数的和有:
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- 。
故只有 个。
数据范围
。
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.