Paste Search Dynamic
Recent pastes
base_repr
  1. import numpy as np
  2. i=[x for x in input().split()]
  3. m=[x for x in input().split()]
  4. n=int(input())
  5. x=int(i[0],int(m[0]))
  6. print(x)
  7. y=int(i[1],int(m[1]))
  8. print(y)
  9. m=x*y
  10. print(np.base_repr(m,n))
Parsed in 0.001 seconds