Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62218 邓昊源 字符替换 C++ Accepted 1 MS 280 KB 256 2023-12-19 20:14:35

Tests(5/5):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char str[200],a,b; gets(str); cin>>a>>b; for(int i=0;i<200;i++){ if(str[i]==a){ str[i]=b; } } cout<<str; return 0; }