16180. 4834. [파이썬 S/W 문제해결 기본] 1일차 - 숫자 카드
·
Algorithm/SW Expert Academy Review
D2 Problem SW Expert Academy 숫자 카드 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com Solution 1. Counting Sort 와 같이 index를 값으로 하는 리스트를 만들어 개수를 센다. 2. 개수 내에서 최댓값과 그 index를 출력한다. Code for test_case in range(1, int(input()) + 1): N = int(input()) # 0이 제일 앞에 나올때를 대비해 str형식으로 받아 한 글자씩 int 변환 num_list = list(map(int, list(input()))) cnt = [0] * 10 # 개수 카운트용 리스트(Index = 숫자..