結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
|
提出日時 | 2016-08-14 08:36:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 572 ms |
コンパイル使用メモリ | 55,960 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 08:01:21 |
合計ジャッジ時間 | 1,439 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <iostream> auto main() -> int { int N; std::cin >> N; int L; int scores[7] = {}; for (int i = 0; i < N; ++i) { std::cin >> L; scores[L]++; } int max_i = 0; for (int i = 1; i <= 6; ++i) { if (scores[i] >= scores[max_i]) { max_i = i; } } std::cout << max_i << std::endl; }