| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71800 | sh25_ganzy | 直方图 | C++ | Compile Error | 0 MS | 0 KB | 331 | 2025-10-29 13:38:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; float num[n],fmax=0; int cnt[int(fmax)+1]={0}; for(int i=0;i<n;i++){ cin>>num[i]; fmax=max(fmax,num[i]); cnt[num[i]]++; } for(int i=0;i<=fmax;i++){ cout<<cnt[i]; } return 0; }