結果

問題 No.706 多眼生物の調査
ユーザー rhincodon66rhincodon66
提出日時 2018-06-30 20:29:16
言語 C++11
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 325 bytes
コンパイル時間 2,577 ms
コンパイル使用メモリ 145,116 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-13 16:23:37
合計ジャッジ時間 2,644 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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; 
}
0