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
- 공부
- memory
- Spring
- C++
- 타입스크립트
- Java
- Operating System
- web
- js to ts
- 백준
- 분할메모리할당
- 일상
- 스프링
- 코드업
- codeup
- 리덕스장바구니
- error
- 파이썬
- react
- 협업
- 프로그래머스
- 토이프로젝트
- 알고리즘
- OS
- CPU 스케줄링
- 기초100제
- 자료구조
- react-redux
- 정렬
- Redux
Archives
- Today
- Total
목록10816 (1)
감자튀김 공장🍟
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bTq1a7/btrSKvfpphZ/bFsKmQfKtLUFHRBhD6sOY0/img.png)
✔ 문제 ✔ 풀이 import sys input = sys.stdin.readline n = int(input()) cards = list(map(int, input().split())) m = int(input()) check = list(map(int, input().split())) dict = {} for i in range(n): if cards[i] not in dict: dict[cards[i]] = 1 else: dict[cards[i]] += 1 for j in check: if j in dict: print(dict[j], end=' ') else: print(0, end=' ') ✔ 설명 10815번과 비슷한 문제지만 카드의 개수를 구하여 출력하는 점이 다르다. 전과 똑같이 dicti..
Algorithm/BOJ
2022. 12. 3. 22:48