Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ws
- Gunicorn
- Query
- algorithm
- utils
- Q objects
- permutations
- stateful
- ORM
- Stack
- combinations
- postreSQL
- Unit Testing
- pytest
- Git
- Programmers
- was
- Django
- AWS
- codecov
- Bruteforce
- dictionary
- greedy
- TDD
- 백준
- stateless
- HTTP 완벽 가이드
- Python
- SQL
- stack&que
Archives
- Today
- Total
목록dictionary (2)
해피 코딩!
[백준] 10816번 숫자카드 2
문제링크 해답 코드 import collections dic = collections.defaultdict(int) n = int(input()) card_lst = list(map(int, input().split())) m = int(input()) find_card = list(map(int, input().split())) for i in card_lst: dic[i] += 1 answer = [] for i in find_card: if dic.get(i): answer.append(dic.get(i)) elif not dic.get(i): answer.append(0) print(' '.join(map(str, answer))) 문제풀이 숫자 카드는 정수 하나가 적혀져 있는 카드..
알고리즘
2021. 1. 9. 16:16