fork download
  1. # your code goes here
  2.  
  3. def A( n ):
  4. if n==1:
  5. return 1
  6. else:
  7. return 10**(n-1)+9*A(n-1)
  8.  
  9. print A(6)
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
468559