본문 바로가기 메뉴 바로가기

인생발전기원

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

인생발전기원

검색하기 폼
  • 분류 전체보기 (964)
    • 백준 (575)
      • 골드 (226)
      • 실버 (344)
      • 브론즈 (2)
      • 플래티넘 (2)
      • 대회 (1)
    • 프로그래머스 (50)
      • 2레벨 (48)
    • Unreal (321)
      • 시작해요 언리얼 2023 (6)
      • Udemy 강의 (314)
      • 게임 개발 (1)
    • Unity (1)
      • 게임 개발 (1)
    • 게임 (12)
      • 플레이한 게임 목록 (12)
    • CS (0)
  • 방명록

2025/06/02 (1)
[프로그래머스 2레벨] 빛의 경로 사이클 (C++)

#include #include #include using namespace std;int n, m;bool visited[501][501][4];//상, 우, 하, 좌int dx[4] = {-1, 0, 1, 0};int dy[4] = {0, 1, 0, -1};int dfs(int x, int y, int dir, vectorv){ int cnt = 0; while(!visited[x][y][dir]) { cnt++; visited[x][y][dir]=1; if(v[x][y]=='L') dir = (dir+3)%4; //좌회전 else if(v[x][y]=='R') dir = (dir+1)%4; //우회전 ..

프로그래머스/2레벨 2025. 6. 2. 21:11
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 언리얼 엔진
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바