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

문제 링크 https://www.acmicpc.net/problem/2407 2407번: 조합 n과 m이 주어진다. (5 ≤ n ≤ 100, 5 ≤ m ≤ 100, m ≤ n) www.acmicpc.net 문제 풀이 코드 #include #include #include #include using namespace std; const int MN = 101; string dp[MN][MN]; string sumString(string a, string b){ long long sum = 0; string ret; while(a.size()||b.size()||sum){ if(a.size()){ sum+=a.back()-'0';//숫자로 변환 a.pop_back(); } if(b.size()){ sum+=b..

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/12900 코딩테스트 연습 - 2 x n 타일링 가로 길이가 2이고 세로의 길이가 1인 직사각형모양의 타일이 있습니다. 이 직사각형 타일을 이용하여 세로의 길이가 2이고 가로의 길이가 n인 바닥을 가득 채우려고 합니다. 타일을 채울 때는 programmers.co.kr 문제 풀이 코드 #include #include using namespace std; const int MN=60001; int dp[MN]; int solution(int n) { int answer = 0; dp[0]=0; dp[1]=1; dp[2]=2; for(int i=3; i

문제 링크 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/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_..