import sys
sys.setrecursionlimit(10 ** 6)
sys 모듈에서 setrecursionlimit함수 인자로 원하는 재귀횟수 만큼 풀어주면된다.
주로 DFS나 BFS문제를 풀때 사용 한다.
'삽질방지' 카테고리의 다른 글
spring builder 오류 (error: cannot find symbol final .......) (0) | 2022.03.03 |
---|---|
[python3] binary string to integer, integer to binary string (0) | 2022.02.17 |
정규표현식 (0) | 2021.09.02 |
[c++] ios::sync_with_stdio(0), cin.tie(0) 는 왜 쓰는 걸까? (0) | 2021.07.19 |
[c++] \n 와 endl 중에는 \n가 더 빠르다. (0) | 2021.07.19 |