20250716 baekjoon

This commit is contained in:
songyc macbook 2025-07-16 21:53:33 +09:00
parent 7de948add1
commit af34d3e2c0

View 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)