fork download
  1. def char2num(s):
  2. digits = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}
  3. return digits[s]
  4. # your code goes here
Success #stdin #stdout 0.1s 14168KB
stdin
Standard input is empty
stdout
Standard output is empty