Dotcpp  >  编程题库  >  Casear cypher
题目 2188:

Casear cypher

时间限制: 2s 内存限制: 192MB 提交: 197 解决: 26

题目描述

The casear cypher is an encryption method based on changing the letters in some text by a certain amount. For example if we shift each letter by 2, then all a's would be come c's all b's would become d's, all y's will become a's and all z's will become b's etc.
Write a program that reads some text that has been encoded using the Caesar cypher. This text will have been encoded using some shift between 1 and 25. Print the original text to the screen.

输入格式

a single line of characters with length L (0<L<=2^10)

输出格式

a single line of characters have been translated.

样例输入

Mjwj nx f wjfqqd xnruqj rjxxflj ymfy dtz xmtzqi ijhtij

样例输出

Here is a really simple message that you should decode

提示

零基础同学可以先学习视频课程,包含C/C++、Python、百练、蓝桥杯辅导、算法数据结构等课程,提供视频讲解以及配套习题,还有老师答疑,点击这里了解课程详情
标签