1050 String Subtraction (20 point(s))

#include<cstdio>
#include<iostream>
#include<string>
using namespace std;
string a, b;
bool book[256];
int main() {
	getline(cin, a);
	getline(cin, b);
	for(int i = 0; i < b.length(); ++i) book[b[i]] = true;
	for(int i = 0; i < a.length(); ++i) if(book[a[i]] == false) printf("%c", a[i]);
	return 0;
} 

 

相关文章:

  • 2021-10-05
  • 2021-07-11
  • 2021-09-08
  • 2021-09-04
  • 2021-12-18
  • 2021-11-17
  • 2021-12-19
  • 2021-06-29
猜你喜欢
  • 2022-02-21
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案