online_judge_1127
来源:互联网 发布:985大学知乎 编辑:程序博客网 时间:2024/06/14 13:53
#include <iostream>#include <map>#include <cstring>#include <cstdio>using namespace std;int main(){ map<char, char> m; char s1[60] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char s2[60] = "VWXYZABCDEFGHIJKLMNOPQRSTU"; char str[201]; int i,len; len = strlen(s1); for(i=0; i<len; ++i) m[s1[i]] = s2[i]; scanf("%s",s1); while(strcmp(s1,"ENDOFINPUT") != 0) { getchar(); gets(str); len = strlen(str); for(i=0; i<len; ++i) { if(str[i]>='A' && str[i]<='Z') str[i] = m[str[i]]; } scanf("%s",s2); printf("%s\n",str); //getchar(); scanf("%s",s1); } return 0;}
0 0
- online_judge_1127
- PHP学习日记
- js变量提升
- leetcode -- Sliding Window Maximum -- 重点
- Kettle调研
- Go语言(golang)开源项目大全
- online_judge_1127
- leetcode (228) Summary Ranges js代码实现
- php 添加curl 模块
- 串口通信校验方式(even,odd,space,mark)
- iOS UIWebView错误信息: frame load interrupt
- 代码高亮javascript 插件 syntaxhighlighter 使用介绍
- 122,数组与字符串的转换
- 自己指定的学习路线
- 这个更新需要花去 50 M 磁盘上总计 /boot 的空间。请在 77k 磁盘上留出 /boot 空间。清空您的回收站和临时文件,用“sudo apt-get clean