n≤100,B≤106n\le 100,B\le 10^6n≤100,B≤106
原本想优化暴力的,结果发现是 B×BB\times BB×B 而不是 n×nn\times nn×n………
感觉像是贪心或二分,但是想不出来