delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s,a,b,x;
getline(cin,s);
cin>>a>>b;
for(int i=0;i<s.size();i++)
{
if(s[i]!=' ') x+=s[i];
else
{
if(x==a) cout<<b<<" ";
else cout<<x<<" ";
x="";
}
}
if(x==a) cout<<b<<" ";
else cout<<x<<" ";
return 0;
}