;b located inside. For each apartment, its dimensions can be different from each other. The number a and b must be integers.</div>
<div>Additionally, the apartments must completely cover the floor without one 1&times;1 square located on (x,y). The apartments must not intersect, but they can touch.</div>
<div>For this example, this is a sample of n=2,m=3,x=2,y=2.</div>
<div><img src="https://www.lydsy.com/JudgeOnline/upload/201510/ff.JPG" width="282" height="206" alt="" /></div>
<div></div>
<div>To prev