2906: 笨小猴 摘要:```cpp #include using namespace std; int main() { string s; cin >> s; int max=0,m…… 题解列表 2024年04月30日 0 点赞 0 评论 577 浏览 评分:0.0
编写题解 2906: 笨小猴 摘要:解题思路:注意事项:参考代码:def main(): a = input().strip() # 读取一行输入并去除前后的空白字符 char_counts = {} # 字典来存储每个…… 题解列表 2024年04月30日 0 点赞 0 评论 629 浏览 评分:0.0
2906: 笨小猴 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int sort(int as[100],int sz){ int max = 0, min =…… 题解列表 2024年02月14日 0 点赞 0 评论 507 浏览 评分:0.0
笨小猴(看题目说只可能出现小写字母,那就可以创建大小为26的数组存放字母出现的次数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[100]; gets(a); in…… 题解列表 2023年10月25日 0 点赞 0 评论 586 浏览 评分:9.9
题解 2906: 笨小猴 解题思路:1.读取输入的单词。2.创建一个长度为26的数组counts用于统计每个字母的出现次数。初始将所有字母的计数设置为0。3.遍历单词中的每个字符,将每个字母的出现次数加1到counts数组的对应位置上。4.找出counts数组中的最大值maxCount和最小值minCount。 题解列表 2023年08月29日 0 点赞 0 评论 636 浏览 评分:0.0
2906笨小猴c++ 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int bbb(int n){ if(n<2) return 0; for(i…… 题解列表 2023年07月17日 0 点赞 0 评论 567 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; gets(str); int maxn=0, …… 题解列表 2023年06月12日 0 点赞 0 评论 528 浏览 评分:0.0
笨小猴java题解 摘要:import java.util.Scanner;public class 笨小猴 { public static void main(String[] args) { Scann…… 题解列表 2023年05月15日 0 点赞 0 评论 605 浏览 评分:0.0
笨小猴,第一次写解析 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char z[101]; scanf("%s",z);//输入一个字符串…… 题解列表 2023年03月14日 0 点赞 0 评论 516 浏览 评分:9.9
2906: 笨小猴 ```cpp#include#include#include#includeusingnamespacestd;boolZS(intn){if(nn;for(inti=0;i 题解列表 2023年01月08日 0 点赞 0 评论 807 浏览 评分:9.9