题解 2853: 字符替换

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2853: 字符替换

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N],a,b;int main()……

两行解决字符替换

摘要:解题思路:0.0注意事项:奥利给加油!参考代码:n,a,b=map(str,input().split())print(n.replace(a,b))……

2853: 字符替换 c++ (string)

摘要:解题思路:注意事项:参考代码:    #include <bits/stdc++.h>    using namespace std;    const int N = 1e3;    typedef……

2853: 字符替换

摘要:参考代码:s, a, b = map(str, input().split()) print(s.replace(a, b))……

题解 2853: 字符替换

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N = 1e5;cha……

c++字符串简单解法 遍历字符串

摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str……

2853: 字符替换

摘要:解题思路:将字符串和字符存储下来后,再通过循环把字符串反复判断并改为题目要求的字符注意事项:循环内需要i从0开始循环,并用strlen()函数把数组最后的值的下标求出,放入循环参考代码:#includ……

Java基本语法

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Main {    public static void main(String[] args) {    ……