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 | 31 |
Tags
- pintos
- stack growth
- vm
- create
- algorithm
- icon button
- Cow
- file
- scaffold
- widget
- materialapp
- System call
- BFS
- flutter
- Flutter
- Copy-on-write
Archives
- Today
- Total
목록BFS (1)
JunHyeok

https://www.acmicpc.net/problem/7562문제 분석체스판의 크기가 300x300 까지 커질 수 있지만, 나이트의 이동이 제한적임을 고려했을 때 단순 bfs로 풀 수 있다고 판단하였다.코드//// main.cpp// 7562//// Created by Jun Hyeok Kim on 5/28/24.//#include #include #include #include int t;int n;int board[300][300] = {0,};bool visited[300][300] = {false,};int knightY,knightX;int goalY,goalX;int dy[8] = {-1,-2,-2,-1,1,2,2,1};int dx[8] = {2,1,-1,-2,2,1,-1,-2};us..
Algorithm
2024. 5. 28. 09:40