Solution1 枚举

  • 时间复杂度 O(n)

  • 空间复杂度 O(1)

l 从 sqrt(area) 开始递增枚举,w 为 area / l 整除的数

Last updated