称不上黄题!!!
2026-10-12 21:19:28
发布于:广东
0阅读
0回复
0点赞
一点点模拟的·概念,个人认为称不上“普及-”
#include <bits/stdc++.h>
using namespace std;
int main(){
string str;
cin >> str;
string str1, str2;
int x, t;
cin >> x;
for(int i = 1; i <= x; i ++){
cin >> t;
if(t == 1){
cin >> str1;
str += str1;
}else if(t == 2){
cout << str.size() << endl;
}else{
cin >> str2;
cout << max(str, str2) << endl;
}
}
return 0;
}
这里空空如也






有帮助,赞一个