代码测试结果为满分
def dHex():
input = map(int, raw_input().split(' '))
number = input[0] + input [1]
d = input[2]
result = []
while number >= d:
result.append(number % d)
number = number / d
result.append(number % d)
resultNum = ''
i = len(result) - 1
while i > -1:
resultNum = resultNum + str(result[i])
i -= 1
print resultNum
if __name__ == '__main__':
dHex()