简单题,直接分类就好
class Solution:
def categorizeBox(self, length: int, width: int, height: int, mass: int) -> str:
if length >= 10**4 or width >= 10**4 or height >= 10**4 or length*width*height >= 10**9:
return "Both" if mass >= 100 else "Bulky"
else:
return "Heavy" if mass >= 100 else "Neither"