Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIL-파이썬 재귀 깊이 제한 #24

Open
triger99 opened this issue Mar 9, 2022 · 0 comments
Open

TIL-파이썬 재귀 깊이 제한 #24

triger99 opened this issue Mar 9, 2022 · 0 comments

Comments

@triger99
Copy link
Collaborator

triger99 commented Mar 9, 2022

백준 4963번 문제를 dfs algorithm으로 풀면서 IDE에서는 출력이 잘 되는데 제출 할때마다 런타임 에러가 발생했다.

import sys
sys.setrecursionlimit(2500)
해결 방법: 파이썬 sys 라이브러리의 setrecursionlimit 메소드를 사용하여 재귀 깊이 조절

문제:https://www.acmicpc.net/problem/4963
해결법: https://velog.io/@jisu0807/TIL-%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%9D%98-%EC%9E%AC%EA%B7%80-%EA%B9%8A%EC%9D%B4-%EC%A0%9C%ED%95%9C-%EB%B3%80%EA%B2%BD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant