题解
2025-08-22 14:17:37
发布于:浙江
1阅读
0回复
0点赞
按照题目进行解题
#include<bits/stdc++.h>
using namespace std;
int main(){
string str;
cin >> str;
int n;
cin >> n;
while(n--){
string op;
cin >> op;
if(op == "1") {
cin >> op;
str += op;
} else if(op == "2") {
cout << str.size() << endl;
} else if(op == "3"){
cin >> op;
cout << max(op,str) << endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个