結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2014-11-27 23:24:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 5,000 ms |
| コード長 | 468 bytes |
| コンパイル時間 | 839 ms |
| コンパイル使用メモリ | 73,760 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 07:12:26 |
| 合計ジャッジ時間 | 1,610 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> v(7, 0);
for(int i=0; i<n; i++){
int x;
cin >> x;
v[x]++;
}
int tmp=0;
int ans=0;
for(int i=1; i<=6; i++){
if(v[i] >= tmp){
tmp = v[i];
ans = i;
}
}
cout << ans << endl;
return 0;
}
koyumeishi