🐍Python/Python_알고리즘

[알고리즘] 40. Extra Long Factorials

728x90
반응형




답 : 



#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the extraLongFactorials function below.
if __name__ == '__main__':
n = int(input())
res = 1
for i in range(1,n+1):
res *= i
print(res)



간단하게 Factorial 계산을 할 수 있다. 

728x90
반응형