| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85139 | sh25_wangtaojie | 凯撒密码 | Python3 | 通过 | 31 MS | 3660 KB | 402 | 2026-03-06 15:09:03 |
def main(): # 读取输入 word = input().strip() n = int(input().strip()) # 加密处理 result = "" for char in word: # 将字符转换为ASCII码,加上偏移量,再转换回字符 encrypted_char = chr(ord(char) + n) result += encrypted_char # 输出结果 print(result) if __name__ == "__main__": main()