1 条题解
-
0
202603zj08王宇浩 (王宇浩) LV 8 @ 2026-06-26 19:36:44
#include<bits/stdc++.h> using namespace std; string s; char bt,t; int main() { cin>>s>>bt>>t; for (int i=0;i<=s.size()-1;i++) { if (s[i]==bt) s[i]=t; } cout<<s; return 0; }
- 1
信息
- ID
- 2403
- 难度
- 6
- 分类
- (无)
- 标签
- 递交数
- 16
- 已通过
- 10
- 通过率
- 62%
- 被复制
- 5
- 上传者