백준문제풀이/재귀1 10872 import sys sys.stdin = open("input.txt","rt") a = int(input())+1 def factorial(x): result = 1 if x > 0: result = x * factorial(x-1) return result print(factorial(a)) 백준문제풀이/재귀 2023. 1. 29. 이전 1 다음