算法笔记 胡凡 codeup String Subtraction (20)
String Subtraction (20)
题目链接:http://codeup.cn/problem.php?cid=100000582&pid=3
思路
读入两个字符串str1,str2
不考虑构造新的字符串,直接输出
若是str1中含有str2中的字符,就不输出该字符
代码
#include <iostream>
#include <cstring>
using namespace std;
char str1[10010],str2[10010]; // 字符
原创
2020-05-22 14:37:45 ·
111 阅读 ·
0 评论