repl.it
@anonymous/

WorthyThatThylacine

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
import math
i,f=input(),int
n=i.split()
e=math.factorial(f(n[0]))
d=''
while e>0:
 d=str((e%f(n[1])))+d;e=e//f(n[1])
print(d.strip('0')[-f(n[2]):])