Skip to content

UVa 458

Alex Wind edited this page Aug 5, 2014 · 3 revisions

The Decoder

from Volume 0. Getting Started

Problem

简单的编码解码加密问题。要求将每个字符(在ASCII码的基础上)增加一个定值,得到新的字符输出。

Solution

字符一个个地输入,如果是换行符就直接输出,不是就加上定值输出即可。定值虽然题目没有给出,但是可以通过样例计算出来。

Clone this wiki locally