L1-011 A-B 分数 20

数组模拟哈希

// 2'00"
#include <iostream>
using namespace std;
int arr[1000];
int main()
{
    string s, d;
    getline(cin,s);
	getline(cin,d); 
    for(auto c : d)
        arr[c] ++;
    for(auto c : s)
    	if(arr[c] == 0) cout << c;
    return 0;
}
posted @ 2024-07-31 20:47  Frodnx  阅读(12)  评论(0)    收藏  举报