题解 | #小乐乐与进制转换#
小乐乐与进制转换
https://www.nowcoder.com/practice/242eafef2a704c0ca130d563b7b3ee2d
n=int(input())
a=[]
while n!=0:
m=n%6
a.append(m)
n=n//6
for i in (a[::-1]):
print(i,end="")
小乐乐与进制转换
https://www.nowcoder.com/practice/242eafef2a704c0ca130d563b7b3ee2d
n=int(input())
a=[]
while n!=0:
m=n%6
a.append(m)
n=n//6
for i in (a[::-1]):
print(i,end="")
相关推荐