1084
来源:互联网 发布:sql round函数怎么用 编辑:程序博客网 时间:2024/06/06 05:23
#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>using namespace std;int main(){int key[128] = { 0 };char str1[85];char str2[85];scanf("%s%s", str1, str2);int len1 = strlen(str1);int len2 = strlen(str2);for (int i = 0; i < len2; i++){if (str2[i] >= 'a'&&str2[i] <= 'z'){key[str2[i]] = 1;key[str2[i] - 32] = 1;}else{if (str2[i] >= 'A'&&str2[i] <= 'Z'){key[str2[i]] = 1;key[str2[i] + 32] = 1;}else{key[str2[i]] = 1;}}}for (int i = 0; i < len1; i++){if (!key[str1[i]]){if (str1[i] >= 'a'&& str1[i] <= 'z'){printf("%c", str1[i] - 32);key[str1[i]] = 1;key[str1[i]-32] = 1;}else{if (str1[i] >= 'A'&& str1[i] <= 'Z'){printf("%c", str1[i]);key[str1[i]] = 1;key[str1[i] + 32] = 1;}else{printf("%c", str1[i]);key[str1[i]] = 1;}}}}return 0;}
1 0
- 1084
- 1084
- 1084
- problem 1084
- ZJU-1084
- hdu 1084
- 1084 四则运算
- hdu-1084
- HDU-1084
- poj 1084
- acdream 1084
- 1084 -- 找子串
- ZOJ 1084
- PAT 1084
- 1084 hash
- FZU 1084 Three powers
- tyvj-1084 简单DP
- ZOJ 1084 Channel Allocation
- AlphaBeta剪枝算法
- 2016年未面试题汇总
- Leetcode 枚举 46. Permutations Leetcode 60
- Mysql 8.0 新增特性
- 如何成为一个更好的交谈者?
- 1084
- C++函数调用机制
- 由linux命令行下命令参数前的一横(-)和两横(--)的区别而得知的
- Java RESTful框架的性能比较
- docker 安装总结
- Leetcode 168. Excel Sheet Column Title
- VS 编译lua库
- 集群中配置多台计算机之间ssh无密码登录的一种简便方法
- 加解密