diff --git "a/leetcode3/\354\265\234\353\257\274\354\247\200/2525.py" "b/leetcode3/\354\265\234\353\257\274\354\247\200/2525.py" new file mode 100644 index 00000000..c4124774 --- /dev/null +++ "b/leetcode3/\354\265\234\353\257\274\354\247\200/2525.py" @@ -0,0 +1,19 @@ +class Solution: + def categorizeBox(self, length: int, width: int, height: int, mass: int) -> str: + + bulky = ( + length >= 10000 + or width >= 10000 + or height >= 10000 + or (length * width * height ) >= 1000000000 + ) + heavy = mass >= 100 + + if (bulky and heavy): + return 'Both' + elif bulky: + return 'Bulky' + elif heavy: + return 'Heavy' + else: + return "Neither" \ No newline at end of file