import sys sys.setrecursionlimit(100000)
를 적지 않으면
"RuntimeError: maximum recursion depth exceeded" Error가 뜹니다.
import sys sys.setrecursionlimit(100000) def s(n): if n == 1: return 1 return n+s(n-1) t = int(input()) print(s(t))