๋ฌธ์ ์ค๋ช ๋ฌธ์ ํ์ด ๊ณผ์ ์ฒซ ๋ฒ์งธ ํ์ด for๋ฌธ์ผ๋ก ๋์๊ฐ๋ฉด์ ๊ฐ๊ฐ์ ํ ํ ์ข ๋ฅ ๊ฐ์๊ฐ ๊ฐ์ผ๋ฉด answer์ +1 ์๊ฐ ์ด๊ณผ๋ก ์คํจ def solution(topping): answer = 0 for i in range(1, len(topping)+1): if len(set(topping[:i])) == len(set(topping[i:])): answer += 1 return answer ๋ ๋ฒ์งธ ํ์ด(๋ค๋ฅธ ์ฌ๋ ํ์ด ์ฐธ๊ณ ) collections์ Counter ํจ์ ์ฌ์ฉ topping์ ๊ฐฏ์๋ฅผ๊ฐ์๋ฅผ ์ผ ํ, ํ๋์ฉ cnt dictionary์ ๋ฃ์ด๊ฐ๋ฉด์ ๊ฐ์๋ฅผ ๋น๊ตํจ. ๋จ์ ์ฌ๋ผ์ด์ฑ์ด ์๋ ๋์ ๋๋ฆฌ ๋ณ๊ฒฝ์ผ๋ก ๋ณต์ก๋ ๊ฐ์ from collections import Counter def solution..