![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/cBYG8C/btsrS48UWj2/OKLKJekQrRnaBseav4mF2K/img.jpg)
백준 7562번 나이트의 이동https://www.acmicpc.net/problem/7562 7562번: 나이트의 이동체스판 위에 한 나이트가 놓여져 있다. 나이트가 한 번에 이동할 수 있는 칸은 아래 그림에 나와있다. 나이트가 이동하려고 하는 칸이 주어진다. 나이트는 몇 번 움직이면 이 칸으로 이동할 수 www.acmicpc.net 정답 코드#include #include using namespace std; int vis[305][305]; //횟수를 기록하는 배열 int dx[8] = { -2,-2,-1,-1,1,1,2,2 }; int dy[8] = { 1,-1,2,-2,2,-2,1,-1 }; queueq; int main(){ ios_base::sync_with_stdio(false); cin...
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/dkR9s0/btsrRRaNk4U/sdPceiOeAgiXkqeJw6hTv0/img.jpg)
백준 6718번 Goldbach's conjecturehttps://www.acmicpc.net/problem/6718 6718번: Goldbach’s conjectureAn integer is given in each input line. You may assume that each integer is even, and is greater than or equal to 4 and less than 215. The end of the input is indicated by a number 0.www.acmicpc.net 정답 코드#include #include using namespace std; int arr[500001] = { 1, }; int main() { int n; for (int x = 2..
- Total
- Today
- Yesterday
- 유클리드 호제법
- C++
- 이분 매칭
- BFS
- 알고리즘
- DFS
- 알고리즘 공부
- 에라토스테네스의 체
- DP
- 스택
- 반복문
- 백준 풀이
- 자료구조
- 자바스크립트
- CSS
- C++ Stack
- html
- 스프링 부트 crud 게시판 구현
- Do it!
- java
- HTML5
- 투 포인터
- js
- 유니온 파인드
- c++ string
- 우선순위 큐
- 카운팅 정렬
- 세그먼트 트리
- 자바
- 백준
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |