直方图(C语言) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; int max=-1;//题目说…… 题解列表 2023年10月30日 0 点赞 0 评论 664 浏览 评分:0.0
直方图(利用数组下标记录对应的数字出现的次数) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class The2909Test { public static void main(String…… 题解列表 2023年11月07日 0 点赞 0 评论 530 浏览 评分:0.0
题解 2909: 直方图 #includeusingnamespacestd;inta,b=0,c,d[20000],e[200000];intmain(){cin>>a;for(inti=0;i>d[i];e[d[i]]++;if(d[i]>b){b=d[i];}}for(inti=0;i 题解列表 2023年12月11日 0 点赞 1 评论 455 浏览 评分:9.9
2909: 直方图 C++ 摘要:解题思路:注意事项:const int 常量(不会改变)cnt[a[i]] cnt 数量参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2023年12月12日 0 点赞 0 评论 458 浏览 评分:0.0
编写题解 2909: 直方图(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2909: 直方图 import java.util.Scanner; public class t_2909 { …… 题解列表 2024年02月01日 0 点赞 0 评论 568 浏览 评分:2.0
题解 2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[10002],n,a[10002];int main(){ ci…… 题解列表 2024年07月16日 0 点赞 0 评论 429 浏览 评分:0.0
题解 2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a…… 题解列表 2024年07月16日 0 点赞 0 评论 455 浏览 评分:0.0
2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a…… 题解列表 2024年07月16日 1 点赞 0 评论 470 浏览 评分:0.0
2909: 直方图 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5;ll p…… 题解列表 2024年07月21日 0 点赞 0 评论 605 浏览 评分:9.9
编写题解 2909: 直方图 摘要:解题思路:写代码里了注意事项:写代码里了参考代码:#include<stdio.h>int main(){ int n,s=-1,i; scanf("%d",&n); int num…… 题解列表 2024年11月14日 0 点赞 0 评论 508 浏览 评分:9.9