본문 바로가기

clohi 님의 블로그

검색하기
clohi 님의 블로그
프로필사진 clohi

  • 분류 전체보기 (29)
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (6)
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/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
Tags
  • 알고리즘
  • 누적합
  • 투 포인터
  • 5972
  • 14503
  • 11726
  • 17299
  • 8983
  • 완전 탐색
  • BFS
  • 10431
  • 백준
  • 스택
  • 그리디
  • 10799
  • 완전탐색
  • 브루트포스
  • 10546
  • 구현
  • BOJ
  • dfs
  • 이분탐색
  • 24480
  • python
  • dp
  • 15900
  • 14248
  • 3986
  • 시뮬레이션
  • 16713
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록14248 (1)

clohi 님의 블로그

[BOJ / Python] 14248 : 점프 점프

https://www.acmicpc.net/problem/14248 문제코드 import sysinput = sys.stdin.readlinen = int(input())arr = list(map(int, input().split()))arr.insert(0, 0)s = int(input())visited = [False] * (n+1)def dfs(arr, s, visited): if(not visited[s]): visited[s] = True if(s + arr[s] 0): dfs(arr, s-arr[s], visited)dfs(arr, s, visited)print(sum(visited)) 풀이 - DFS 사용 DFS를 사용하면 쉽게 풀리는 문제이다. 물론 B..

Algorithm/BOJ 2025. 5. 11. 23:14
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바