일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 일본 여행
- DP
- 너비 우선 탐색
- 시뮬레이션
- 완전 탐색
- 플로이드
- 큐
- BFS
- 후쿠오카 여행경비
- 하카타역
- BOJ
- 삼성테스트
- 삼성 SW 테스트
- 후쿠오카
- IOS
- dfs
- brute force
- 후쿠오카 4박 5일
- 완전탐색
- 백준
- 플로이드 와샬
- 미로찾기
- queue
- 후쿠오카 요도바시 하카타
- 후쿠오카 캐널시티
- 알고리즘
- 삼성시험
- 깊이 우선 탐색
- deque
- 다이나믹 프로그래밍
- Today
- Total
목록알고리즘 (85)
맛있는감귤
문제 : https://www.acmicpc.net/problem/1094 github : https://github.com/JEONG-SEUNGWOOK/BOJ/blob/master/1094.cpp #include using namespace std; int main(){ int X,cnt=0, sum=0; int XX,bar=64; cin >> X; XX=X; while(sum!=X){ if(bar
문제 : https://www.acmicpc.net/problem/1085 github : https://github.com/JEONG-SEUNGWOOK/BOJ/blob/master/1085.cpp #include #include using namespace std; int main(){ int x,y,w,h; scanf("%d %d %d %d",&x, &y, &w, &h); int m=1001; m = min(min(x-0, w-x), min(y-0, h-y)); printf("%d",m); return 0; }
문제 : https://www.acmicpc.net/problem/1026 github : https://github.com/JEONG-SEUNGWOOK/BOJ/blob/master/1026.cpp 문제 분류 : 정렬, 탐색 #include #include #include using namespace std; int main(){ int N; int a[51]; int b[51]; int answer = 0; scanf("%d",&N); for(int i=0;i
문제 : https://www.acmicpc.net/problem/1009 github : https://github.com/JEONG-SEUNGWOOK/BOJ/blob/master/1009.cpp #include #include using namespace std; int main(){ int T; scanf("%d",&T); for(int testcase=1; testcase
문제 : https://www.acmicpc.net/problem/1012 github : https://github.com/JEONG-SEUNGWOOK/BOJ/blob/master/1012.cpp 일반적인 DFS, BFS 문제. DFS로 간단하게 해결. #include using namespace std; int T,N,M,K; bool map[51][51]; bool isVisited[51][51]; int dx[4]={1,-1,0,0}; int dy[4]={0,0,1,-1}; void dfs(int x, int y){ for(int i=0;i=0 && nx=0 && ny