From 40ab9fe1dce66074b9f4d20a55eef54b75bd0ed1 Mon Sep 17 00:00:00 2001 From: choiminji Date: Wed, 9 Sep 2026 22:25:14 +0900 Subject: [PATCH] 260909 --- .../2525.py" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "leetcode3/\354\265\234\353\257\274\354\247\200/2525.py" 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