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

Casear cypher

时间限制: 3s 内存限制: 192MB 提交: 188 解决: 25

题目描述

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教程单片机教程

视频教学见视频网课

标签