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 | 29 | 30 | 31 |
Tags
- 구현
- 백준
- dp
- 공공데이터
- pandas
- Geocoding
- 그리디
- GroupBy
- 유클리드
- 그래프탐색
- 깊이우선탐색
- 그래프이론
- 건축물대장정보
- 누적합
- 자연어처리
- 수학
- 너비우선탐색
- cosine
- 전처리
- geopy
- TF-IDF
- 코사인유사도
- xmltodict
- 분할정복
- 지진대피소
- 비트마스킹
- NLP
- 유사도
- 재귀
- 우선순위큐
Archives
- Today
- Total
목록구현 (1)
정리용
[백준 11723] 파이썬 - 집합
https://www.acmicpc.net/problem/11723 11723번: 집합 첫째 줄에 수행해야 하는 연산의 수 M (1 ≤ M ≤ 3,000,000)이 주어진다. 둘째 줄부터 M개의 줄에 수행해야 하는 연산이 한 줄에 하나씩 주어진다. www.acmicpc.net 1. 코드설명 import sys input = lambda : sys.stdin.readline().strip() s=[] for i in range(int(input())): a=input().split() if a[0] == 'all': s=[i for i in range(1,21)] continue elif a[0] == 'empty': s.clear() continue num=int(a[1]) if a[0] == 'add'..
알고리즘/백준
2022. 1. 11. 23:53