Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 안드로이드
- android
- DFS와BFS
- django
- DART
- C++
- 백준
- Flutter
- cos pro 1급
- 동적계획법과최단거리역추적
- 코드품앗이
- issue
- DFS
- vuejs
- 코테
- 개발
- docker
- BAEKJOON
- Algorithm
- 분할정복
- 안드로이드스튜디오
- AndroidStudio
- 파이썬
- Python
- codingtest
- 코딩테스트
- cos pro
- 동적계획법
- cos
- 알고리즘
Archives
- Today
- Total
목록cos 1급 1차 8번 python (1)
Development Artist

문제 유형 한줄 수정 난이도 easy Note 1. 후보 번호 = idx Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(N, votes): vote_counter = [0 for i in range(N+1)] for i in votes: vote_counter[i] += 1 max_val = max(vote_counter) print(vote_counter) answer = [] for idx in range(1, N + 1): if vote_counter[idx] == max_val: answer.append(idx) return answer N1 = 5 votes1 = [1,5,4,3,2,5,2,5,5,4] r..
Algorithm/COS
2022. 2. 24. 21:54