?
2025-07-12 20:40:55
发布于:江苏
6阅读
0回复
0点赞
?
#include<bits/stdc++.h>
using namespace std;
bool isSubstring(const std::string& mainStr, const std::string& subStr) {
return std::search(mainStr.begin(), mainStr.end(), subStr.begin(), subStr.end()) != mainStr.end();
}
int main() {
std::string str1 = "so?";
std::string str2 = "isn't?";
int fed = 0;
if (isSubstring(str1, str2)) {
fed = 0;
} else {
fed = 1;
}
int a,b;
cin >> a >> b,cout << a << endl << b;
return 0;
}
全部评论 1
咋了
6天前 来自 上海
0远古题解
6天前 来自 江苏
0
有帮助,赞一个