From af34d3e2c0c37986fefed4ad97001b09737eeabe Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Wed, 16 Jul 2025 21:53:33 +0900 Subject: [PATCH] 20250716 baekjoon --- code_study/Baekjoon/python/9375.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 code_study/Baekjoon/python/9375.py 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