字母表被列举为A=0,B=1,C=2,Z=25。考虑加密方案,其中在明文中具有值CI的字符被另一个具有值Cj的字符替换,使用公式CJ=(CI + 5)% 26。替换后,结果字符串随机洗牌(排列)以获得密码文本
给定纯文本和可能的密码文本,您的任务是确定是否可以使用上述方案从纯文本生成密码文本
(假设所有字符串均为大写)
输入格式:
输入的第一行包含一个表示纯文本的字符串
输入的第二行是一个字符串,表示可能的密文
输出格式:
显示是或否(输出后无换行符)
例如:
输入:
Python TDMSUY
输出:
对
输入:
乔普内尔 JQYVSUTHO
输出:
没有
请用Python回答
相关问题 更多 >
编程相关推荐