일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- unordered_map
- 플로이드와샬
- vector
- C++
- 다익스트라
- 다이나믹프로그래밍
- sql고득점kit
- 백준
- 코테준비
- set
- 스택
- 시스템콜
- 최대공약수
- MySQL
- 코테
- 동적계획법
- 문자열
- 알고리즘
- 프로그래머스
- Dijkstra
- 코딩테스트연습
- DP
- 정렬
- MAP
- dfs
- 참고 문헌 : MACHINE LEARNING 기계학습 _ 오일석
- substr
- 우선순위큐
- 리시프
- String
- Today
- Total
목록YeJinii (74)
YeJin's Footsteps

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/60057 코딩테스트 연습 - 문자열 압축 데이터 처리 전문가가 되고 싶은 "어피치"는 문자열을 압축하는 방법에 대해 공부를 하고 있습니다. 최근에 대량의 데이터 처리를 위한 간단한 비손실 압축 방법에 대해 공부를 하고 있는데, 문 programmers.co.kr 문제 풀이 코드 #include #include #include #include using namespace std; int solution(string s) { int len=s.size(); int answer = len; for(int i=1; i

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/77484 코딩테스트 연습 - 로또의 최고 순위와 최저 순위 로또 6/45(이하 '로또'로 표기)는 1부터 45까지의 숫자 중 6개를 찍어서 맞히는 대표적인 복권입니다. 아래는 로또의 순위를 정하는 방식입니다. 1 순위 당첨 내용 1 6개 번호가 모두 일치 2 5개 번호 programmers.co.kr 문제 풀이 코드 #include #include #include #include #include using namespace std; int rnk(int score){ if(score>=2) return (7-score); else return 6; } vector solution(vector lotto..

문제 링크 https://www.acmicpc.net/problem/9370 9370번: 미확인 도착지 (취익)B100 요원, 요란한 옷차림을 한 서커스 예술가 한 쌍이 한 도시의 거리들을 이동하고 있다. 너의 임무는 그들이 어디로 가고 있는지 알아내는 것이다. 우리가 알아낸 것은 그들이 s지점에서 www.acmicpc.net 문제 풀이 코드 #include #include #include #include #include using namespace std; using P = pair; const int INF=987654321; const int MN=2001; vector graph[MN]; vector Dijkstra(int N, int S){ vector Dijk(N+1,INF); priority..

문제 링크 https://www.acmicpc.net/problem/1238 1238번: 파티 첫째 줄에 N(1 ≤ N ≤ 1,000), M(1 ≤ M ≤ 10,000), X가 공백으로 구분되어 입력된다. 두 번째 줄부터 M+1번째 줄까지 i번째 도로의 시작점, 끝점, 그리고 이 도로를 지나는데 필요한 소요시간 Ti가 들어 www.acmicpc.net 문제 풀이 코드 #include #include #include #include using namespace std; using P = pair; const int MN=1010; const int INF=1e9; vector graph [MN]; int Dist[MN]; int Answer[MN]; void Dijkstra(int S){ priority_..

문제 링크 https://www.acmicpc.net/problem/2458 2458번: 키 순서 1번부터 N번까지 번호가 붙여져 있는 학생들에 대하여 두 학생끼리 키를 비교한 결과의 일부가 주어져 있다. 단, N명의 학생들의 키는 모두 다르다고 가정한다. 예를 들어, 6명의 학생들에 대하여 www.acmicpc.net 문제 풀이 코드 #include #include using namespace std; const int MN = 501; bool floyd[MN][MN]; int main(void){ int N, M; cin>>N>>M; for(int i=0; i>u>>v; floyd[u][v]=true; } for(int k=1; k