求调,上关
查看原帖
求调,上关
902351
Little_x_starTYJ楼主2023/9/10 16:48
#include <bits/stdc++.h>
using namespace std;
int main()
{
    string a, b;
    cin >> a >> b;
    while (1)
    {
        int t = a.find(b);
        if (t == -1)
            break;
        a.erase(t, b.size());
    }
    if (a.size() > 0)
        cout << a;
    else
        puts("FRULA");
}

TLE了,96分,应该是函数调用导致超时。。。

2023/9/10 16:48
加载中...