题解 1402: 简单的字符串

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

筛选

字符数组遍历解决

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){      char str[100] = { 0 };//初始化字符数组  ……

思路即可解题

摘要:解题思路:定义一个结构体,分别含有字母,字母的数字,然后统计,最后输出;注意事项:参考代码:#include<iostream>using namespace std;typedef struct {……

简单的字符串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){       int n=0;    scanf("%d",&n);    g……

1402: 简单的字符串

摘要:#include<stdio.h> #include<string.h> int main() { int n,i,len;char str[10000]; scanf("%d\n",&n)……

简单的字符串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[10001],k; int i,j,n,l; scanf("%……

简单的字符串-题解(C语言描述/c++代码)

摘要: 解题思路:利用字符串和哈希数组解题,先输入n的值,再接收n个字符串str,在字符串str中对每个个字符出现的数量利用哈希数组进行计数,再根据哈希数组中存储的数量进行计数. 注意事项: ……