結果

問題 No.1285 ゴミ捨て
ユーザー 👑 Nachia
提出日時 2020-11-13 21:21:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 1,602 ms
コンパイル使用メモリ 174,304 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2024-07-22 20:24:24
合計ジャッジ時間 3,418 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 10 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)


int main() {

	int N; cin >> N;
	map<int, int> A;
	rep(i, N) { int a; cin >> a; A[a] = A[a] + 1; }
	int ans = 0;
	for (auto p : A) ans = max(ans, p.second);
	cout << ans << endl;

	return 0;
}
0