题解 | #密码游戏#

密码游戏

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

import sys


str1=input()
list2=list(map(int,str1))
list3=[]
for i in list2:
    i=(i+3)%9
    list3.append(i)
print(f'{list3[2]}{list3[3]}{list3[0]}{list3[1]}')



全部评论

相关推荐

昨天 11:37
黑河学院 运营
点赞 评论 收藏
分享
03-26 12:00
已编辑
门头沟学院 Java
offer魅魔_oc...:100-200每天,你还要倒贴100
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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