PAT(甲级)1084. Broken Keyboard (20)
来源:互联网 发布:我的世界优化fps 编辑:程序博客网 时间:2024/05/18 17:59
题目:https://www.patest.cn/contests/pat-a-practise/1084
代码:
#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>using namespace std;int main(){bool a[128]={false};char str1[100],str2[100];gets(str1);gets(str2);int len1=strlen(str1);int len2=strlen(str2);for(int i=0;i<len1;i++){ char temp1,temp2;int j;for(j=0;j<len2;j++){ temp1=str1[i]; temp2=str2[j]; if(temp1>='a'&&temp1<='z') temp1-=32; if(temp2>='a'&&temp2<='z') temp2-=32; if(temp1==temp2) break;}if(j==len2&&a[temp1]==false){ printf("%c",temp1); a[temp1]=true;}}system("pause");}
0 0
- PAT(甲级)1084. Broken Keyboard (20)
- 1084. Broken Keyboard (20)-PAT甲级试题
- PAT甲级练习1084. Broken Keyboard (20)
- PAT 甲级 1084. Broken Keyboard (20)
- 1084. Broken Keyboard (20)(PAT甲)
- pat 1084. Broken Keyboard (20)
- PAT 1084. Broken Keyboard (20)
- PAT 1084. Broken Keyboard (20)
- pat 1084. Broken Keyboard (20)
- PAT 1084. Broken Keyboard (20)
- 【PAT】1084. Broken Keyboard (20)
- 1084. Broken Keyboard (20) PAT
- 1029. 旧键盘(20) PAT乙级&1084. Broken Keyboard (20)PAT甲级
- PAT 1084. Broken Keyboard
- PAT 1084. Broken Keyboard
- 【PAT】1084. Broken Keyboard
- pat 1084. Broken Keyboard
- PAT Broken Keyboard (20)
- 语录
- 2.2线性表的顺序表示和实现
- NYOJ67 - 三角形面积
- Android自定义View之widget桌面小控件: 我可以控件时间啦
- bzoj 1050/ codevs 1001 贪心(伪Kruscal)
- PAT(甲级)1084. Broken Keyboard (20)
- 洛谷 P1147 连续自然数和
- NYOJ458 - 小光棍数
- 并归排序
- 博客第一篇----信计学生的奋斗
- hibernate 多对多
- BZOJ 3160 FFT+Manacher
- 1118. Birds in Forest (25)
- Litjson