文章

71

粉丝

97

获赞

5

访问

18.0k

头像
单词替换 为什么会output limit
我要提问
发布于2024年2月19日 16:17
阅读数 268

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;

int number[105] = { 0 };
int main() {
    string str, a, b;
    while (getline(cin,str)&&cin>>a>>b) {
        int m = a.length();
        int n = b.length();
        for (int i = 0; i < str.size();i++) {
            int flag = 1;
            for (int j = 0; j < m; j++) {
                if (a[j] != str[i + j]) {
                    flag = 0;
                }
            }
 &...

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发