当前位置:网站首页>Pat grade a 1050 string subtraction
Pat grade a 1050 string subtraction
2022-07-26 16:11:00 【IX. is it a non random title】
#include<iostream>
#include<vector>
#include<string>
#include<map>
#include<bits/stdc++.h>
using namespace std;
int main(void){
int i, j, k;
string s, s0, res;
getline(cin, s);
getline(cin, s0);
map<char, int> mp;
for(i = 0; i<s0.length(); i++){
mp[s0[i]] = 9;
}
for(i = 0; i < s.length(); i++){
if(mp[s[i]]+0==0)
res += s[i];
}
cout<<res;
return 0;
}边栏推荐
- 博途PLC顺序开关机功能块(SCL)
- 2022 latest Beijing Construction Safety Officer simulation question bank and answers
- 山西阳泉一煤矿发生致1人死亡安全事故,被责令停产整顿
- Operating system migration practice: deploying MySQL database on openeuler
- 德国EMG易安基推动器ED301/6 HS
- “卡片笔记法”在思源的具体实践案例
- 一文详解 Redis 中 BigKey、HotKey 的发现与处理
- Octree establishes map and realizes path planning and navigation
- Understand │ XSS attack, SQL injection, CSRF attack, DDoS attack, DNS hijacking
- How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?
猜你喜欢

【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)

【物理模拟】最简单的shape matching的原理与实践

This article explains in detail the discovery and processing of bigkey and hotkey in redis

小哥自创AI防拖延系统,一玩手机就被“闪瞎” | Reddit高热

PAT甲级 1050 String Subtraction

“核弹级” Log4j 漏洞仍普遍存在,并造成持续影响

Research and application of the whole configuration of large humanoid robot

2022 latest Tibet Construction scaffolder (construction special operation) simulation exam questions and answers

2022年全国最新消防设施操作员(高级消防设施操作员)考试试题及答案

互联网协议
随机推荐
Jointly discuss the opening of public data, and the "digital document scheme" appeared at the digital China Construction Summit
PAT甲级1048 Find Coins
C语言重点知识总结
We were tossed all night by a Kong performance bug
2022年全国最新消防设施操作员(高级消防设施操作员)考试试题及答案
First knowledge of OpenGL (2) compilation shaders
机器人手眼标定Ax=xB(eye to hand和eye in hand)及平面九点法标定
Summary of QT plug-in development -- add plug-in menu in the main interface
Paper: all models are wrong, but many are useful: all models are wrong, but many are useful: understand the importance of variables by studying a whole class of prediction models at the same time
Paper:《All Models are Wrong, but Many are Useful: 所有模型都是错误的,但许多模型都是有用的:通过同时研究一整类预测模型来了解变量的重要性》翻译与解读
【物理模拟】超简单的shape matching模拟刚体运动
物联网工业级串口转WiFi转网口转以太网模块的选型
Build resume editor based on Nocode
换把人体工学椅,缓解久坐写代码的老腰吧~
DELTA控制器RMC200
2022年最新北京建筑安全员模拟题库及答案
Activity之onCreate、onRestoreInstanceState恢复数据的区别
《硅谷之谜》读后感
Robot hand eye calibration ax=xb (eye to hand and eye in hand) and plane nine point calibration
共议公共数据开放,“数牍方案”亮相数字中国建设峰会