fork download
  1. def f(x):
  2. n = 1
  3. a = x
  4. for i in range(x):
  5. print(n % 10)
  6. n *= a
  7. n //= i + 1
  8. a -= 1
  9.  
  10. f(100)
Success #stdin #stdout 0.13s 14068KB
stdin
Standard input is empty
stdout
1
0
0
0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0
0
0
0
0
0
5
0
0
0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
0
5
0
0
0
0
0
0
4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
0