Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
字符串解密
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 190, Accepted users: 176
Problem 10484 : No special judgement
Problem description
  编写程序,将输入的一行字符加密和解密。加密时,每个字符依次反复加上“4962873”中的数字,如果范围超过ASCII码的032(空格)~122(“z”),则进行模运算。解密与加密的顺序相反。编制加密与解密函数,打印各个过程的结果。

Input
  第一行是一个整数T,表示有T组数据。每组数据一行,为一字符串,长度不超过1000个字符。

Output
  对于每一组数据,先输出“Case #:”(#为序号,从1起),换行;然后输出加密的结果,空一行,再输出解密后的结果,换行。

Sample Input
2
By My Side
A Little Too Not Over You
Sample Output
Case 1:
F'&O&'Vmmk
 
By My Side
Case 2:
E)Rk! oi)Zqw'Qs"&Q#lu$buw
 
A Little Too Not Over You
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2168 today,16258895 total, since 2010-05-07