2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N],a,b;int main()…… 题解列表 2023年12月15日 0 点赞 0 评论 100 浏览 评分:0.0
两行解决字符替换 摘要:解题思路:0.0注意事项:奥利给加油!参考代码:n,a,b=map(str,input().split())print(n.replace(a,b))…… 题解列表 2024年01月22日 0 点赞 0 评论 163 浏览 评分:0.0
2853: 字符替换 c++ (string) 摘要:解题思路:注意事项:参考代码: #include <bits/stdc++.h> using namespace std; const int N = 1e3; typedef…… 题解列表 2024年07月22日 0 点赞 0 评论 67 浏览 评分:0.0
字符替换(%c会读取空格,要注意,这时候就要善用getchar()处理空格) 摘要:参考代码: ```c #include #include int main() { char a[30]; scanf("%s",a); getchar(); char b,…… 题解列表 2023年09月20日 0 点赞 0 评论 194 浏览 评分:0.0
2853: 字符替换 摘要:参考代码:s, a, b = map(str, input().split()) print(s.replace(a, b))…… 题解列表 2024年03月23日 0 点赞 0 评论 207 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N = 1e5;cha…… 题解列表 2024年07月12日 0 点赞 0 评论 61 浏览 评分:0.0
题解 2853: 字符替换 摘要: #include using namespace std; char a[20000],b,c,d,n; int main(){ cin>…… 题解列表 2023年12月15日 0 点赞 0 评论 90 浏览 评分:0.0
c++字符串简单解法 遍历字符串 摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str…… 题解列表 2023年10月30日 0 点赞 0 评论 100 浏览 评分:0.0
2853: 字符替换 摘要:解题思路:将字符串和字符存储下来后,再通过循环把字符串反复判断并改为题目要求的字符注意事项:循环内需要i从0开始循环,并用strlen()函数把数组最后的值的下标求出,放入循环参考代码:#includ…… 题解列表 2024年07月19日 0 点赞 0 评论 95 浏览 评分:0.0
Java基本语法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Main { public static void main(String[] args) { …… 题解列表 2023年12月25日 0 点赞 0 评论 118 浏览 评分:0.0