当前位置:网站首页>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;
}
边栏推荐
- 2345文件粉碎,文件强力删除工具无捆绑纯净提取版
- Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO
- Easy to use js script
- 解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
- 淘宝焦点图布局实战
- How to generate rich text online
- Network Security Learning - Web vulnerabilities (Part 1)
- 纯Qt版中国象棋:实现双人对战、人机对战及网络对战
- 爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
- SQL table name is passed as a parameter
猜你喜欢
米家、涂鸦、Hilink、智汀等生态哪家强?5大主流智能品牌分析
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21
How to generate rich text online
Gifcam v7.0 minimalist GIF animation recording tool Chinese single file version
GifCam v7.0 极简GIF动画录制工具中文单文件版
构建库函数的雏形——参照野火的手册
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
Formatting occurs twice when vs code is saved
RobotFramework入门(二)appUI自动化之app启动
Introduction to robotframework (II) app startup of appui automation
随机推荐
Redis skip table
Solution: attributeerror: 'STR' object has no attribute 'decode‘
Minecraft 1.16.5 biochemical 8 module version 2.0 storybook + more guns
PMP每日一练 | 考试不迷路-7.5
Formatting occurs twice when vs code is saved
Force buckle 146 LRU cache
剑指 Offer 30. 包含min函数的栈
Introduction to robotframework (III) Baidu search of webui automation
Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
Follow the mouse's angle and keyboard events
微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器
Reset nodejs of the system
Differences and usage scenarios between TCP and UDP
Keyword static
DDoS attacks - are we really at war?
Trends in DDoS Attacks
How to generate rich text online
LeetCode 103. Binary tree zigzag level order transverse - Binary Tree Series Question 5