fork(1) download
  1. # your code goes here
  2. a=[]
  3. t=int(input())
  4. n=int(input())
  5. k=int(input())
  6. i=0
  7. x=k
  8. for i in range(k):
  9. a.append(int(input()))
  10. for i in range(n-k):
  11. f=1
  12. print(a)
  13. for j in range(1,x+1):
  14. print(k)
  15. f=f*a[k-j]
  16. x=x+1
  17. a.append(f)
  18. print(a)
  19. #x=a[n-1]%(10^9+7)
  20. #print(x)
Runtime error #stdin #stdout #stderr 0.04s 9128KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
EOFError: EOF when reading a line