L1-011 A-B (20 分)
作者:互联网
暴力!!!冲冲冲!!!
#include <iostream> #include <cstring> using namespace std; int main() { string A, B; getline(cin, A); getline(cin, B); for(int i = 0; i < B.size(); i++) { for(int j = 0; j < A.size(); j++) { if(A[j] == B[i]) A[j] = 0; } } for(int i = 0; i < A.size(); i++) if(A[i] > 0) cout << A[i]; return 0; }
标签:20,int,++,cin,011,L1,include,getline,size 来源: https://www.cnblogs.com/MoonSkyy/p/15950143.html