PAT 天梯赛 L1-011. A-B 【水】
题目链接
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;
}PAT 天梯赛 L1-011. A-B 【水】的更多相关文章
- PAT 天梯赛 L1-047. 装睡 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-047 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-042. 日期格式化 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-042 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-041. 寻找250 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-041 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-022. 奇偶分家 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-022 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-016. 查验身份证 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-016 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-014. 简单题 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-014 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-012. 计算指数 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-012 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-010. 比较大小 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-010 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-007. 念数字 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-007 AC代码 #include <iostream> #include <cstdio&g ... 
- PAT 天梯赛 L1-004. 计算摄氏温度 【水】
		题目链接 https://www.patest.cn/contests/gplt/L1-004 AC代码 #include <iostream> #include <cstdio&g ... 
随机推荐
- 技巧JS
			1. document.referrer可以获得上一页的地址,使用document.anchors获得页面上面所有的链接元素,而不必使用document.getElementsByTagNam ... 
- 第二百三十节,jQuery EasyUI,后台管理界面---后台管理
			jQuery EasyUI,后台管理界面---后台管理 一,admin.php,后台管理界面 <?php session_start(); if (!isset($_SESSION['admin ... 
- jquery图片上传前预览剪裁
			http://www.webmotionuk.co.uk/jquery/image_upload_crop.php http://keleyi.com/a/bjad/liuvpkke.htm 不错的d ... 
- cobbler default system 网络安装时主机的menu上只有一个local选项
			问题:使用cobbler default system 做pxe网络安装时,主机启动后安装menu上只有一个local选项,看不到对应的system名字 解决:cobbler default syst ... 
- HP proliant服务器从usb启动
			1,开机出现自检画面开始按F9进入设置,进入BIOS 选择standard boot order(rpl),把usb driver放在第一位,保存好 2,按F1开始启动. (注:我使用ubuntu14 ... 
- 【转】Android横竖屏重力自适应
			通常我们的应用只会设计成横屏或者竖屏,锁定横屏或竖屏的方法是在manifest.xml文件中设定属性android:screenOrientation为"landscape"或&q ... 
- ext布局问题之tab panel内的gridpanel内容数据变多,出现滚动条
			1)解决之道: 1.修改tabPanel var tabs= new Ext.TabPanel({ border: false, region:'center', id:'center', activ ... 
- std::stringstream(2)
			stringstream本身的复制构造函数是私有的,无法直接用,于是带来了一些复杂的问题 网上,流传着几种办法,如streamA.str(streamB.str()),但这种办法,复制的仅仅是初始化时 ... 
- [Algorithms] KMP
			KMP is a classic and yet notoriously hard-to-understand algorithm. However, I think the following tw ... 
- AEcs6破解版下载
			下载地址 http://pan.baidu.com/share/link?shareid=79184520&uk=1795677788 点击下载 
