시소짝궁1 시소 짝꿍 - Pyton, https://school.programmers.co.kr/learn/courses/30/lessons/152996# 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 코드 & 풀이 from collections import Counterdef solution(weights): answer = 0 weights_count = Counter(weights) # 각 무게의 등장 횟수 기록 # 동일한 무게끼리 짝꿍이 되는 경우 for weight, count in weights_count.items(): if count > 1: answer += coun.. 2024. 12. 24. 이전 1 다음