結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
|
提出日時 | 2025-07-14 16:44:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 19 ms / 5,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 3,149 ms |
コンパイル使用メモリ | 275,520 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-14 16:45:01 |
合計ジャッジ時間 | 5,042 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int A[10]; int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int N; cin >> N; int mx = 0; for(int i = 0; i < N; i++) { int a; cin >> a; A[a]++; mx = max(mx, A[a]); } for(int i = 9; i >= 0; i--) if(A[i] == mx) { cout << i << endl; return 0; } }