题解 2909: 直方图

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2909: 直方图

```cpp#include#includeusingnamespacestd;intmain(){intfmax,maxs=0,a[10001],b[10001];memset(b,0,sizeof(b));cin>>fmax;for(inti=1;i>a[i];b[a[i]]++;if(a[i]>

@更向天涯 小李子不行啊!!!

摘要:解题思路:注意事项:cin、cout一定要改成scanf和printf不然会超时!!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10……

直方图(C++)简单解

摘要:参考代码:#include <iostream>#include <vector>#include <algorithm>using namespace std;int main() {    int……

2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long tong[10000];int main(){    int ……

题解 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

2909: 直方图 C++

摘要:解题思路:注意事项:const int  常量(不会改变)cnt[a[i]]      cnt    数量参考代码:#include<bits/stdc++.h>using namespace std……

题解 2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[10002],n,a[10002];int main(){ ci……

题解 2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a……

2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;ll tong[10000];int n;ll a……

2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5;ll p……