diff --git a/code_study/Baekjoon/python/9375.py b/code_study/Baekjoon/python/9375.py new file mode 100644 index 0000000..ca91320 --- /dev/null +++ b/code_study/Baekjoon/python/9375.py @@ -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) \ No newline at end of file