fork download
  1. n = int(input())
  2.  
  3. ans = ""
  4.  
  5. YZQ = 99.5
  6.  
  7. while n!=0:
  8. if n % YZQ < 10:
  9. ans = str(n % YZQ) + ans
  10. else:
  11. ans = chr(ord("A") + (n % YZQ - 10)) + ans
  12.  
  13. n = n//YZQ
  14.  
  15. print(ans)
Runtime error #stdin #stdout #stderr 0.14s 23288KB
stdin
43895643
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 11, in <module>
    ans = chr(ord("A") + (n % YZQ - 10)) + ans
TypeError: integer argument expected, got float