题解 | 密码游戏
num = input()
list = []
for i in range(0,4):
list.append ((int(num[i])+3)%9)
print(str(list[2])+str(list[3])+str(list[0])+str(list[1]))
num = input()
list = []
for i in range(0,4):
list.append ((int(num[i])+3)%9)
print(str(list[2])+str(list[3])+str(list[0])+str(list[1]))
相关推荐