Home > other >  For the big guy in python to solve it
For the big guy in python to solve it

Time:04-26

CodePudding user response:

 def ItoN (d, t) : 
R='
While d & gt; T:
D, y=divmod (d, t)
R=CRH (y - 10 + 65) if y & gt;=10 else STR (y) + r
Return CRH (d - 10 + 65) + r if d & gt;=10 else STR (d) + r


I, n=map (int, input (" & gt;> & gt;" ). The split ())
Print (ItoN (I, n))

CodePudding user response:

Is to use a dictionary to write good mapping rules
  • Related