4 条题解

  • 1
    @ 2024-6-30 10:19:56

    brjhgfvdbfrjhsdgbfhdgsfhdgygsyufgsuyguysfguy fguysgfuysgfyugyfugysgfygsyfgsuyg6r236r6g64tgf64g5rf76t65guytgre4tgg78e9tgju8rtgkl-659jyir8fg67efg67gt5h67fegft76rgf7efikjymolek,refopeh4tfghoipwijmeyhfiosm,ldja635e563wgrwf56efg

    • 0
      @ 2024-7-20 14:35:49
      #include<bits/stdc++.h>
      using namespace std;
      string s;
      int main(){
      char ch1,ch2;
      cin>>s>>ch1>>ch2;
      for(int i=0; i<s.size();i++){
      	if(s[i]==ch1){
      		s[i]=ch2;
      	}
      }
      cout<<s;
      	return 0;
      }
      • 0
        @ 2024-7-20 13:47:29

        #include<bits/stdc++.h> using namespace std;
        int main(){ string s; char ch1,ch2; cin>>s>>ch1>>ch2; for(int i=0 ;i<s.size();i++){ if(s[i]==ch1){ s[i]=ch2; } } cout<<s; return 0; }

        • -3
          @ 2024-6-28 17:41:52

          #include<bits/stdc++.h> using namespace std; string s; int main(){ char ch1,ch2; cin>>s>>ch1>>ch2; for(int i = 0;i<s.length();i++){ if(s[i]==ch1){ s[i]=ch2; } } cout<<s; return 0; }

          • 1

          信息

          ID
          2078
          时间
          1000ms
          内存
          256MiB
          难度
          3
          标签
          递交数
          256
          已通过
          129
          上传者