Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106200 丁俊杰 十进制转R进制 Python3 Accepted 42 MS 3776 KB 295 2025-01-15 17:03:44

Tests(10/10):


Code:

a="0123456789ABCDEF" d={} for i,j in enumerate (a): d[j]=i #十进制转化为R进制 def Ten_to_R(X,R): res="" while X!=0: res+=a[X%R] X//=R return res[::-1] X,R=map(int,input().split()) if X==0: print(0) else: print(Ten_to_R(X,R))