为啥95?
查看原帖
为啥95?
1342124
wangrongze楼主2024/11/3 14:19
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef int itn;
const int N = 1e5 + 6;
int n, x, dp[N], ans;
int main(){
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	cin >> n;
	while(n--){
		cin >> x;
		ans = max(ans, ++dp[x]);
	}
	cout << ans << '\n';
	return 0;
}

求调!!! 95分

2024/11/3 14:19
加载中...