方形花园 Square Garden

题意翻译

给你正方形边长,和需要浇灌方块的个数,让你求出所有浇灌方块边长最大和

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3965 [PDF](https://uva.onlinejudge.org/external/125/p12520.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12520/e01e1a42a0e8142af984c397ca23ee4d90c2c621.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12520/bd04155dc0bfc33cd9449e4fb2fa1c503ddec525.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12520/7d4f0ab602fd6d6ca5844eb9513f91ef44902044.png)

输入输出样例

输入样例 #1

1 0
1 1
2 3
3 8
0 0

输出样例 #1

0
4
8
16