Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
55543 wangchenglin 密码翻译 Python3 Accepted 30 MS 3668 KB 312 2024-11-08 12:07:16

Tests(1/1):


s = input() encrypted = "" for c in s: if 'a' <= c <= 'y': encrypted += chr(ord(c) + 1) elif 'A' <= c <= 'Y': encrypted += chr(ord(c) + 1) elif c == 'z': encrypted += 'a' elif c == 'Z': encrypted += 'A' else: encrypted += c print(encrypted)


Judgement Protocol: