Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions leetcode3/최민지/2525.py
Original file line number Diff line number Diff line change
@@ -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"