fork download
  1. A,B,N = map(float,input().split())
  2. result = A/B
  3. a_list = str(result).split(".")
  4. print(a_list[1][int(N)-1])
Runtime error #stdin #stdout #stderr 0.19s 25448KB
stdin
1 3 1000000
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
IndexError: string index out of range