解题代码:
#十进制转任意进制
def zhuan(n,x):
b = []
while True:
s = n // x
y = n % x
b = b + [y]
if s==0:
break
n = s
b.reverse()
for i in b:
print(i,end = '')
all_list = list(map(int,input().rstrip().split()))
zhuan(all_list[0] + all_list[1],all_list[2])