Skip to content

Commit 51584d8

Browse files
Merge pull request #1999 from CodingTestStudy2/최민지
[최민지] Day09
2 parents 218ed87 + 40ab9fe commit 51584d8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎leetcode3/최민지/2525.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Solution:
2+
def categorizeBox(self, length: int, width: int, height: int, mass: int) -> str:
3+
4+
bulky = (
5+
length >= 10000
6+
or width >= 10000
7+
or height >= 10000
8+
or (length * width * height ) >= 1000000000
9+
)
10+
heavy = mass >= 100
11+
12+
if (bulky and heavy):
13+
return 'Both'
14+
elif bulky:
15+
return 'Bulky'
16+
elif heavy:
17+
return 'Heavy'
18+
else:
19+
return "Neither"

0 commit comments

Comments
 (0)