Skip to content

Commit d546de7

Browse files
Merge pull request #1998 from CodingTestStudy2/최원준
[최원준] Day09
2 parents 51584d8 + 67a0125 commit d546de7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def categorizeBox(self, length: int, width: int, height: int, mass: int) -> str:
3+
return "Both" if (length >= 10000 or width >= 10000 or height >= 10000 or length * width * height >= 10**9) and mass >= 100 else "Bulky" if (length >= 10000 or width >= 10000 or height >= 10000 or length * width * height >= 10**9) else "Heavy" if mass >= 100 else "Neither"

0 commit comments

Comments
 (0)