好理解的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int flag=0;&n…… 题解列表 2026年05月26日 2 点赞 0 评论 198 浏览 评分:0.0
莉露编写题解 2847: 找第一个只出现一次的字符 摘要:解题思路:for(int i = 0;i<strlen(s);i++){ for(int j=0;j<strlen(s);j++){if(s[j] == s[i]…… 题解列表 2026年02月12日 1 点赞 0 评论 461 浏览 评分:0.0
2847:找第一个只出现一次的字符 解题思路:注意事项:参考代码:#include#includeintmain(){charstr[100000];intcount[26]={0};intflag=0;fgets(str,sizeof(str), 题解列表 2025年10月31日 0 点赞 0 评论 575 浏览 评分:10.0
c语言 找第一个只出现一次的字符[a-z] 解题思路:将每个字符拆开再遍历,判断有没有相同字符,若没有则是要找的字符注意事项:粗略代码,题目要求字符数量在0-10000间,计算时计算文本长度再代入遍历才好将红色串改成if(b!=3)则可以判断任意字符,3是文本结束字符参考代码:#includeintmain(void){cha 题解列表 2025年10月09日 0 点赞 0 评论 486 浏览 评分:0.0
使用unordered_map解题 摘要:解题思路:充分利用STL容器的特性-unordered_map, 对其进行存放和计算 得出第一个个数为1的小写字母注意事项: 参考代码:#include<bits/stdc++.h>char sear…… 题解列表 2024年11月30日 1 点赞 0 评论 659 浏览 评分:0.0
找第一个只出现一次的字符(C语言)(简单) #include#includeintmain(){chara[100000];gets(a);inty=strlen(a);intr=0;charw='a';for(w;w=2){for(inte=0;e 题解列表 2024年11月25日 1 点赞 0 评论 1149 浏览 评分:9.9 找第一个只出现一次的字符 摘要:解题思路:写题解代码只是为了自己查看,无严谨性注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100000]; …… 题解列表 2024年11月06日 0 点赞 0 评论 719 浏览 评分:0.0 2847 找第一个只出现一次的字符(gets) 摘要:解题思路:注意事项:参考代码#include <stdio.h>#include <string.h>int main() { char arr[100001], ch; int i, j…… 题解列表 2024年10月29日 0 点赞 0 评论 610 浏览 评分:0.0 找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { char arr[200] = { 0 }; fgets(arr, s…… 题解列表 2024年09月26日 0 点赞 0 评论 584 浏览 评分:0.0 优质题解,回归真神的初始途径 摘要:解题思路:利用字典,统计每个字母出现的次数注意事项:参考代码:word=input()dic={}for le in word: if le in dic: dic[le]+=1 …… 题解列表 2024年07月25日 1 点赞 0 评论 1010 浏览 评分:0.0 « 123456 »
找第一个只出现一次的字符 摘要:解题思路:写题解代码只是为了自己查看,无严谨性注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100000]; …… 题解列表 2024年11月06日 0 点赞 0 评论 719 浏览 评分:0.0
2847 找第一个只出现一次的字符(gets) 摘要:解题思路:注意事项:参考代码#include <stdio.h>#include <string.h>int main() { char arr[100001], ch; int i, j…… 题解列表 2024年10月29日 0 点赞 0 评论 610 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { char arr[200] = { 0 }; fgets(arr, s…… 题解列表 2024年09月26日 0 点赞 0 评论 584 浏览 评分:0.0
优质题解,回归真神的初始途径 摘要:解题思路:利用字典,统计每个字母出现的次数注意事项:参考代码:word=input()dic={}for le in word: if le in dic: dic[le]+=1 …… 题解列表 2024年07月25日 1 点赞 0 评论 1010 浏览 评分:0.0