题解 | #密码游戏#

密码游戏

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

integer_str = input()
res = [] for alpha in integer_str:
    res.append((int(alpha) + 3) % 9)
res[0], res[2] = res[2], res[0]
res[1], res[3] = res[3], res[1] print(''.join(map(str, res)))
#题解#
全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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