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 |
Tags
- 코딩테스트
- 스택
- 프로그래머스
- BFS
- 운영체제
- level1
- DP
- 재귀
- MYSQL
- python
- 다이나믹 프로그래밍
- 수학
- N과M
- dfs
- 파이썬
- dict
- 다익스트라
- level0
- 가상메모리 관리
- level3
- level2
- programmers
- 힙
- 가상메모리
- 브루트포스
- 딕셔너리
- 백준
- BOJ
- 그리디
- 구현
Archives
- Today
- Total
목록1377 (1)
동캄의 코딩도장
백준 1377 [버블 소트] 파이썬
https://www.acmicpc.net/problem/1377 1377번: 버블 소트 첫째 줄에 N이 주어진다. N은 500,000보다 작거나 같은 자연수이다. 둘째 줄부터 N개의 줄에 A[1]부터 A[N]까지 하나씩 주어진다. A에 들어있는 수는 1,000,000보다 작거나 같은 자연수 또는 0이다. www.acmicpc.net # 백준 1377 버블 소트 import sys from collections import defaultdict input = sys.stdin.readline N = int(input()) lst = {} lst_sorted = [] lst_val = [] answer = -1 diffs = defaultdict(lambda: 1000001) for i in range(N..
코테/BOJ
2022. 4. 16. 21:36