111,076
社区成员




//m,n必须大于1,不然无法构成矩形
int getRect(int m, int n)
{
int result = 0;
if (m > 1 && n > 1)
{
result = m * (m - 1) / 2 * (n * (n - 1) / 2);
}
return result;
}