반응형
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
- 그리디
- python
- level2
- level0
- 힙
- level1
- N과M
- 스택
- 딕셔너리
- 다익스트라
- 코딩테스트
- 수학
- level3
- 에라스토테네스의 체
- dfs
- 백준
- BFS
- 브루트포스
- 구현
- 프로그래머스
- 파이썬
- 다이나믹 프로그래밍
- BOJ
- 운영체제
- MYSQL
- 가상메모리
- 가상메모리 관리
- programmers
- 재귀
- DP
Archives
- Today
- Total
목록스타트와 링크 (1)
동캄의 코딩도장
백준 14889 [스타트와 링크] 파이썬
https://www.acmicpc.net/problem/14889# 백준 14889 스타트와 링크from collections import dequeN=int(input())field=[]for _ in range(N): field.append(list(map(int,input().split()))) #전체 경우 저장visited=[0 for _ in range(N)]team=deque()ans=10**9 def team_match(curr): #팀에 인원을 추가하여, 팀을 두개로 분리하여(방문한 팀 vs 방문안한 팀) 차이 비교 global ans if len(team)==N//2: team_ano=deque() for i in range(N): ..
코테/BOJ
2025. 3. 5. 21:12