当前位置:网站首页>Pat 1084 broken keyboard (20 points) string find
Pat 1084 broken keyboard (20 points) string find
2022-07-06 02:39:00 【Python ml】
#include <iostream>
using namespace std;
int main() {
string s1,s2,ans;
cin>>s1>>s2;
for(int i=0;i<s1.length();i++)
if(s2.find(s1[i])==string::npos&&ans.find(toupper(s1[i]))==string::npos)
ans+=toupper(s1[i]);
cout<<ans;
return 0;
}
边栏推荐
- Initial understanding of pointer variables
- [postgraduate entrance examination English] prepare for 2023, learn list5 words
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
- Qt发布exe软件及修改exe应用程序图标
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
- How to generate rich text online
- 3D drawing ()
- 微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器
- MySQL winter vacation self-study 2022 11 (7)
- 解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
猜你喜欢
Qt发布exe软件及修改exe应用程序图标
Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21
RobotFramework入门(三)WebUI自动化之百度搜索
How to generate rich text online
好用的 JS 脚本
【MySQL 15】Could not increase number of max_open_files to more than 10000 (request: 65535)
Easy to use js script
Solution: attributeerror: 'STR' object has no attribute 'decode‘
解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
随机推荐
HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
DDoS "fire drill" service urges companies to be prepared
inherited constructors
I changed the driver to 5.1.35, but it is still the same error. I can succeed even now, but I will report this every time I do an SQL operation
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24
PMP每日一练 | 考试不迷路-7.5
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
[Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
550 permission denied occurs when FTP uploads files, which is not a user permission problem
Universal crud interface
ftp上传文件时出现 550 Permission denied,不是用户权限问题
High number_ Vector algebra_ Unit vector_ Angle between vector and coordinate axis
Structural theme model (I) STM package workflow
Déduisez la question d'aujourd'hui - 729. Mon emploi du temps I
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
Apt installation ZABBIX
Formatting occurs twice when vs code is saved
Redis installation
如何精准识别主数据?
MySQL winter vacation self-study 2022 11 (8)