简单的字符串-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ int n; cin>>n; while(n-…… 题解列表 2020年04月27日 0 点赞 0 评论 628 浏览 评分:0.0
简单的字符串-题解(C语言代码) 摘要:```c #pragma warning(disable:4996) #include #include #include #include void f(char c[]){…… 题解列表 2020年02月16日 0 点赞 0 评论 593 浏览 评分:0.0
简单的字符串-题解(C语言描述/c++代码) 摘要: 解题思路:利用字符串和哈希数组解题,先输入n的值,再接收n个字符串str,在字符串str中对每个个字符出现的数量利用哈希数组进行计数,再根据哈希数组中存储的数量进行计数. 注意事项: …… 题解列表 2020年02月19日 0 点赞 0 评论 511 浏览 评分:0.0
简单的字符串用STL高效解决(C++代码) 摘要:STL里面的Map方法可以很高效的解决这个题,因为mapv中只要添加了字符,不会有重复出现并且还能记录重复了几次,所以代码如下: #include #include …… 题解列表 2020年03月11日 0 点赞 0 评论 750 浏览 评分:0.0
简单的字符串-题解(Java代码) 摘要:```java import java.util.Scanner; public class Main{ public static void main(String[] args) { …… 题解列表 2020年03月24日 0 点赞 3 评论 462 浏览 评分:0.0
简单的字符串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,i,j,k,t; char s[10001]; scanf("%…… 题解列表 2018年02月22日 0 点赞 0 评论 1304 浏览 评分:2.7
简单的字符串-题解(C语言代码) 摘要: #include int main() { char a[10000]; int n,i,j; scanf("%d",&n); for(i=0…… 题解列表 2019年07月25日 0 点赞 0 评论 781 浏览 评分:6.0
简单的字符串-题解(Python代码) 摘要:参考代码:n = int(input()) for i in range(n): s = input() d = {} for j in s: & 题解列表 2021年01月24日 0 点赞 0 评论 503 浏览 评分:8.0
简单的字符串-题解(C语言代码)(我的是笨法子) 摘要:解题思路: 这里有一个用于计数的整型变量,用count代替吧,count=1为初始值。针对输入的一个字符串而言,从第二个字符开始鉴别(注意是str[1]不是str[0]或str[2]),将当前字符与…… 题解列表 2019年07月31日 0 点赞 5 评论 1133 浏览 评分:9.0
简单的字符串-题解(C语言代码) 摘要:```c #include #include int main() { char s[10000],ch; int i,j,n,count; scanf("%…… 题解列表 2020年02月26日 0 点赞 0 评论 912 浏览 评分:9.2