Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117358 汤奕硕 情报加密 Python3 Accepted 40 MS 3764 KB 397 2025-04-17 20:32:04

Tests(10/10):


Code:

s = input().strip() encrypted = [] for c in s: if c.islower(): if c == 'z': encrypted.append('a') else: encrypted.append(chr(ord(c) + 1)) elif c.isupper(): if c == 'Z': encrypted.append('A') else: encrypted.append(chr(ord(c) + 1)) else: encrypted.append(c) print(''.join(encrypted))