結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
rhincodon66
|
| 提出日時 | 2018-06-30 20:29:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 1,379 ms |
| コンパイル使用メモリ | 159,612 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 01:00:31 |
| 合計ジャッジ時間 | 2,561 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | RE * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
vector<int> A(1010);
string s="";
for(int i=0;i<N;++i){
cin >> s;
A.at(s.size()-3)++;
}
int ans=0,sum=0;
for(int i=0;i<A.size();++i){
if(A.at(i)>=sum){
sum=A.at(i);
ans=i+1;
}
}
cout << ans << endl;
}
rhincodon66