#include <iostream>
#include<vector>
#include<string>
#include<cctype>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main()
{
    string alph="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    vector<string> str(3);
    while(cin>>str[0] && str[0]!="ENDOFINPUT")
    {
        getchar();
        getline(cin,str[1]);
        string::size_type n=str[1].size();
        for(decltype(n) i=0;i<n;i++)
        {
         if(str[1][i]<='Z' && str[1][i]>='A')
         {
             if((str[1][i]-'A'-5)>=0)
             str[1][i]=alph[str[1][i]-'A'-5];
             else
                str[1][i]=alph[str[1][i]-'A'+21];
         }
        }
        cin>>str[2];
        cout<<str[1]<<endl;
    }
    return 0;
}

最新文章

  1. .NET基础拾遗(7)Web Service的开发与应用基础
  2. pod的SDK报错,Linker command failed with exit code1(use -v to see invocation)
  3. JavaScript错误之:Uncaught ReferenceError: $ is not defined
  4. linux tomcat 用/etc/init.d/tomcat start启动报错
  5. OBJ Loader Source Code
  6. Java for LintCode 颠倒整数
  7. eclipse使用技巧、快捷键
  8. openstack排错
  9. BZOJ 3199 escape
  10. Java经典问题算法大全
  11. 【转】OpenCV中使用神经网络 CvANN_MLP
  12. React Starter Kit 中文文档
  13. Linux 修改用户名
  14. Nginx配置了解
  15. 初试Python语法小试牛刀之冒泡排序
  16. 理解 Redis(9) - Publish Subscribe 消息订阅
  17. 大家来找茬:富连网今天中午抢购二手iPhone时网站无法访问的问题
  18. Charles----- 4.2.7 版本 破解方法
  19. 今天刚接触lua 写写环境配置和基本设置
  20. C++中输入输出十六进制八进制

热门文章

  1. Python异步爬取梁羽生小说网
  2. JSR303校验
  3. NEO4J入门基础第二章
  4. IaaS--区域和可用区(何恺铎《深入浅出云计算》笔记整理)
  5. Mybatis二级缓存(1)
  6. Goreplay流量回放-使用真实流量测试
  7. django连接ubuntu22下的mysql8
  8. Gradle 安装配置
  9. Hibernate的工作流程
  10. STM32F0 LL库IIC第二地址配置错误