結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
|
提出日時 | 2018-04-10 18:31:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 507 ms |
コンパイル使用メモリ | 58,960 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 20:55:19 |
合計ジャッジ時間 | 1,399 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 16 WA * 6 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector <int> r(7, 0); for (int i = 0; i < n; ++i) { int a; cin >> a; r[a]++; } int ans=1; for (int i = 2; i < 7; ++i) { if (r[ans] < r[i]) ans = i; } cout << ans<< endl; fflush (stdin); getchar (); fflush (stdin); getchar (); return 0; }