题解 | 密码游戏

密码游戏

https://www.nowcoder.com/practice/36641ab168664384aff798ba7ce34bc1

def jiami(a):
    b=(a+3)%9
    return b
        
a=input()
digit_list = [int(d) for d in a]

c=list(map(jiami,digit_list))
n=str(c[2])+str(c[3])+str(c[0])+str(c[1])

print(n)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务