2853: 字符替换 摘要:解题思路:注意事项:参考代码:l = list(input().split())t = l[0].replace(l[1],l[2])print(t)…… 题解列表 2024年08月01日 0 点赞 0 评论 165 浏览 评分: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: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char c[32],l,k;int main(){ cin>>c; …… 题解列表 2024年07月12日 0 点赞 0 评论 118 浏览 评分:0.0
Java基本语法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Main { public static void main(String[] args) { …… 题解列表 2023年12月25日 0 点赞 0 评论 118 浏览 评分:0.0
2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 73 浏览 评分:0.0
2853: 字符替换 摘要:解题思路:注意事项:参考代码:a,b,c=input().split()d=a.replace(b,c)print(d)…… 题解列表 2024年01月24日 0 点赞 0 评论 93 浏览 评分:0.0
c++字符串简单解法 遍历字符串 摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str…… 题解列表 2023年10月30日 0 点赞 0 评论 100 浏览 评分:0.0
2853: 字符替换 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String arg…… 题解列表 2024年02月04日 0 点赞 0 评论 147 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string a; cin >> a;…… 题解列表 2023年04月07日 0 点赞 0 评论 173 浏览 评分:0.0
字符替换C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char beitihuan,tihuanzhe; char a[31]; …… 题解列表 2023年02月01日 0 点赞 0 评论 396 浏览 评分:6.0