直方图(利用数组下标记录对应的数字出现的次数) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class The2909Test { public static void main(String…… 题解列表 2023年11月07日 0 点赞 0 评论 254 浏览 评分:0.0
2909: 直方图 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>using…… 题解列表 2025年08月24日 0 点赞 0 评论 73 浏览 评分:0.0
C语言 两个数组+3个for循环解决问题 摘要:解题思路: 用 数组b 的下标记录,我们输入的 数组a 的各个值出现的次数例如 a[6]={ 5, 2, 3, 2, 2, 5 } ;因为 数组a 的最大值是5 ,所以 数组b 的下标最大值也是5那…… 题解列表 2024年12月08日 0 点赞 0 评论 277 浏览 评分:0.0
2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a…… 题解列表 2024年07月16日 1 点赞 0 评论 217 浏览 评分:0.0
题解 2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a…… 题解列表 2024年07月16日 0 点赞 0 评论 225 浏览 评分:0.0
题解 2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[10002],n,a[10002];int main(){ ci…… 题解列表 2024年07月16日 0 点赞 0 评论 217 浏览 评分:0.0
2909: 直方图 C++ 摘要:解题思路:注意事项:const int 常量(不会改变)cnt[a[i]] cnt 数量参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2023年12月12日 0 点赞 0 评论 199 浏览 评分:0.0
直方图(C语言) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; int max=-1;//题目说…… 题解列表 2023年10月30日 0 点赞 0 评论 312 浏览 评分:0.0
2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long tong[10000];int main(){ int …… 题解列表 2023年10月14日 0 点赞 0 评论 202 浏览 评分:0.0
利用双for筛选特定的值,并利用满足条件计算出现次数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int a[10000],b[10001]={0}; int max=0; int n; sc…… 题解列表 2023年04月09日 0 点赞 0 评论 256 浏览 评分:0.0