본문 바로가기

JunHyeok

검색하기
JunHyeok
프로필사진 junhyeok-log

  • 분류 전체보기 (27)
    • PintOS (14)
    • Algorithm (1)
    • Computer Science (1)
    • Flutter (11)
      • 순한맛 (6)
      • 조금매운맛 (5)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/10   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록BFS (1)

JunHyeok

[Algorithm - BOJ] 나이트의 이동 - 7562

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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바