摘要: 自己写的 class Solution: def constructRectangle(self, area: int) -> List[int]: # 计算给定面积的平方根 root = area ** 0.5 # 初始化结果列表,默认为 [1, area],即长为面积,宽为1的情况 temp = 阅读全文
posted @ 2024-05-14 11:06 Junior_bond 阅读(14) 评论(0) 推荐(0)