就是数组里面嵌套数组 ####统计字符#####总体思路:在用数组嵌套循环统计个字符的个数上,假定一个字符重复的最大值与之比较赋值就行。1.首先,我们用while循环实现多组输入。2.然后循环二十六个字符,输入我们的字符串,统计其存在的个=各个字符个数。3.再嵌套一个数组,作为各个重复字符和的下标。 题解列表 2023年05月10日 0 点赞 0 评论 614 浏览 评分:0.0
超级玛丽游戏 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);System.out.printf("***** 题解列表 2023年05月10日 0 点赞 0 评论 887 浏览 评分:9.9
模拟分类(标题不能太短) #模拟分类##解题思路举个例子:假设要找区间[1,123456789]中所有的好数之和:1.假设`2022`出现在最后四位,即我们要求类似于`xxxxx2022`结构的数,思考其前后缀可以是什么?*其前缀可以是区间`[0,12345)`中的任意一个数, 题解列表 2023年05月10日 0 点赞 0 评论 1089 浏览 评分:7.6
删除单词后缀 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanne…… 题解列表 2023年05月10日 0 点赞 0 评论 570 浏览 评分:0.0
不难不难用好字符串 摘要:解题思路:注意事项:参考代码:s=input()##print()if s[-2:]=='er': print(s[:-2])elif s[-2:]=='ly':…… 题解列表 2023年05月11日 0 点赞 0 评论 669 浏览 评分:9.0
搜索dfs+暴力 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int len;string ans = "";int jaa(int x, in…… 题解列表 2023年05月11日 0 点赞 0 评论 601 浏览 评分:0.0
与2无关的数 摘要:解题思路:注意事项:n的取值范围为1000以内参考代码:#include<iostream>using namespace std;int main(){ int n,sum=0; cin…… 题解列表 2023年05月11日 0 点赞 0 评论 534 浏览 评分:0.0
1262: 邮局选址问题(模拟退火) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct poit { int x; int y; }p[1…… 题解列表 2023年05月11日 0 点赞 0 评论 802 浏览 评分:0.0
计算奇数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t,cnt=0; …… 题解列表 2023年05月11日 0 点赞 0 评论 561 浏览 评分:0.0
日期换算。。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; switch…… 题解列表 2023年05月11日 0 点赞 0 评论 452 浏览 评分:0.0