結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2020-02-28 00:02:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 5,000 ms |
| コード長 | 360 bytes |
| コンパイル時間 | 565 ms |
| コンパイル使用メモリ | 70,444 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-13 16:07:08 |
| 合計ジャッジ時間 | 1,500 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
template <class T=int> inline T in() { T x; cin >> x; return x; }
int main() {
int n; cin >> n;
vector<int> cnt(7);
for (int i = 0; i < n; i++) cnt[in()]++;
int p = 6;
for (int i = 6; i; i--) if (cnt[i] > cnt[p]) p = i;
cout << p << endl;
return 0;
}
kyuna