题目链接

https://www.patest.cn/contests/gplt/L1-011

AC代码

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
#include <cstdlib>
#include <ctype.h>
#include <numeric>
#include <sstream>
using namespace std;

typedef long long LL;
const double PI = 3.14159265358979323846264338327;
const double E = 2.718281828459;
const double eps = 1e-6;
const int MAXN = 0x3f3f3f3f;
const int MINN = 0xc0c0c0c0;
const int maxn = 1e5 + 5;
const int MOD = 1e9 + 7;

int main()
{
    string s;
    getline(cin, s);
    int len = s.size();
    string temp;
    getline(cin, temp);
    map <char, int> m;
    m.clear();
    int len_ = temp.size();
    for (int i = 0; i < len_; i++)
    {
        m[temp[i]] = 1;
    }
    for (int i = 0; i < len; i++)
    {
        if (m[s[i]] == 0)
            cout << s[i];
    }
    cout << endl;
}

最新文章

  1. 原生js完成拼图小游戏
  2. Bootstrap3中.container和.container-fluid区别
  3. Groovy安装配置
  4. 源码编译安装LNMP环境及配置基于域名访问的多虚拟主机
  5. Tesseract——OCR图像识别 入门篇
  6. G - I Think I Need a Houseboat(简单题,粘贴下来是因为数据精度需要注意)
  7. c#QQ连连看辅助
  8. Matlab命令行编译运行HelloWorld
  9. EM 算法求解高斯混合模型python实现
  10. 【BZOJ1003】物流运输(动态规划,最短路)
  11. Python链接Oracle数据库
  12. scrapy入门与进阶
  13. 前端自动化准备和详细配置(NVM、NPM/CNPM、NodeJs、NRM、WebPack、Gulp/Grunt、Git/SVN)
  14. 制作根文件系统之内核如何启动init进程
  15. 《Linux内核分析》第四周笔记 扒开系统调用的三层皮(上)
  16. getImplementationVersion-获取版本号
  17. finger-guessing game:2增加游戏进度,界面title及游戏界面
  18. vue-cli配置axios
  19. Python - 3.6 学习三
  20. Jenkins升级、迁移、备份

热门文章

  1. ffmpeg 日志系统av_log()
  2. pl/sql 实例精解 06
  3. js 控制按钮点击后不可用
  4. python - 判断是否为正小数和正整数
  5. 什么是 end-to-end 神经网络?——知乎解答
  6. 使用scp命令传输文件
  7. ARGOX 力象 OS-214Plus 条码打印机 B/S 打印
  8. 【vijos】1286 座位安排(状压dp)
  9. 微软2016校园招聘4月在线笔试 hihocoder 1289 403 Forbidden
  10. c#——表达式树在LINQ动态查询