結果

問題 No.706 多眼生物の調査
ユーザー ugis_progugis_prog
提出日時 2018-07-07 20:51:01
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 51,844 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-18 14:50:16
合計ジャッジ時間 879 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;
#define FOR(i,num,N) for(int(i)=(num);(i)<(N);(i)++)

int main(){
    int N;
    cin>>N;
    int A[1000] = {0};

    FOR(i,0,N){
        string s;
        cin>>s;
        A[s.size()-2]++;
    }
    int a=0; int m=0;
    FOR(i,0,1000){
        if(m<=A[i])a=i;
    }
    cout<<a<<"\n";
}
0