传送门:ABC344
咕了一个周的题解。省流:D>E+不可以总司令专场 ohhhhhhhhhhhhhhhhhhhhhhhhhh
善用STL。
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin>>S;
int i=S.find('|');j=S.find('|',i+1);
cout<<S.substr(0,i)+S.substr(j+1)<<endl;
return 0;
}
依旧签到。
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> A;
while(true){
int a;