python简单字符串两个解法 带解析 摘要:# 法1:N=int(input().strip())#输入题目Nfor i in range(N): A=input() #输入字符串 n=1 #记录相邻相同字符的个数 s = "…… 题解列表 2023年02月11日 0 点赞 0 评论 201 浏览 评分:0.0
简单的字符串 摘要:解题思路:用字典去重注意事项:参考代码:n = int(input())for i in range(n): L = list(input()) dic = {} for i in …… 题解列表 2023年03月27日 0 点赞 0 评论 225 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 190 浏览 评分:0.0
搞懂map自定义排序 摘要: #include #include using namespace std; //mapa 相当于 mapa; //如果是mapa,char…… 题解列表 2024年01月11日 0 点赞 0 评论 259 浏览 评分:0.0
思路即可解题 摘要:解题思路:定义一个结构体,分别含有字母,字母的数字,然后统计,最后输出;注意事项:参考代码:#include<iostream>using namespace std;typedef struct {…… 题解列表 2024年07月18日 0 点赞 0 评论 208 浏览 评分:0.0
字符数组遍历解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100] = { 0 };//初始化字符数组 …… 题解列表 2024年08月14日 0 点赞 0 评论 347 浏览 评分:0.0
结构体数组解决(c语言代码) 摘要:```c #include #include #include #include #define MAX 10001 typedef struct { char …… 题解列表 2024年08月25日 0 点赞 0 评论 302 浏览 评分:0.0
简单的字符串-题解(C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int n; cin>>n; while(n--){ st…… 题解列表 2020年06月27日 0 点赞 0 评论 370 浏览 评分:0.0
简单的字符串-题解(C语言代码) 摘要: #include #include int main(){ int x,y,z=0,d; scanf("%d",&x); while(z…… 题解列表 2019年08月11日 0 点赞 0 评论 782 浏览 评分:0.0