結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
![]() |
提出日時 | 2020-05-11 22:47:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 5,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 1,513 ms |
コンパイル使用メモリ | 165,260 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 07:28:43 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N, lev[10] = {}; cin >> N; for (int i = 0; i < N; i++) { int l; cin >> l; lev[l]++; } int ans = 1; for (int i = 2; i <= 6; i++) { if (lev[ans] <= lev[i]) ans = i; } cout << ans << endl; }