結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  nabla_delta | 
| 提出日時 | 2019-09-30 18:50:35 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 10 ms / 2,000 ms | 
| コード長 | 356 bytes | 
| コンパイル時間 | 1,345 ms | 
| コンパイル使用メモリ | 169,356 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-03 05:24:24 | 
| 合計ジャッジ時間 | 1,867 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
int main(){
	vector<int> cnt(1000, 0);
	int n;
	cin >> n;
	for(int i=0; i<n; i++){
		string s;
		cin >> s;
		cnt[s.length()-2]++;
	}
	int m=0, a=0;
	for(int i=0; i<1000; i++){
		if(m<=cnt[i]){
			m=cnt[i];
			a=i;
		}
	}
	cout << a << endl;
	return 0;
}
            
            
            
        