20250716 baekjoon
This commit is contained in:
parent
7de948add1
commit
af34d3e2c0
9
code_study/Baekjoon/python/9375.py
Normal file
9
code_study/Baekjoon/python/9375.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
for _ in range(int(input())):
|
||||||
|
clothes = {}
|
||||||
|
for _ in range(int(input())):
|
||||||
|
name, type = input().split()
|
||||||
|
clothes[type] = clothes.get(type,0) + 1
|
||||||
|
result = 1
|
||||||
|
for n in clothes.values():
|
||||||
|
result *= (n+1)
|
||||||
|
print(result-1)
|
||||||
Loading…
x
Reference in New Issue
Block a user