結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  subsn | 
| 提出日時 | 2023-06-16 09:44:50 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 422 bytes | 
| コンパイル時間 | 369 ms | 
| コンパイル使用メモリ | 28,800 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-24 04:12:55 | 
| 合計ジャッジ時間 | 903 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 5 | 
ソースコード
#include <stdio.h>
#include <string.h>
int main()
{
    int c[1001];
    memset(c,0,1001);
    int n;
    int max = 0;
    int index = 0;
    scanf("%d",&n);
    char s[1024];
    for (int i = 0;i < n;i++) {
        scanf("%s", &s);
        c[strlen(s)-3]++;
    }
    for (int i = 0;i < 1000;i++) {
        if (c[i] >= max) {
            index = i + 1;
            max = c[i];
        }
    }
    printf("%d\n",index);
}
            
            
            
        