結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  kerotono | 
| 提出日時 | 2018-06-29 22:25:43 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 2,000 ms | 
| コード長 | 438 bytes | 
| コンパイル時間 | 115 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 11,264 KB | 
| 最終ジャッジ日時 | 2024-06-30 23:56:17 | 
| 合計ジャッジ時間 | 821 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
#!python
# -*- coding: utf-8 -*-
def main():
    N = int(input())
    S = []
    for i in range(N):
        S.append(input())
    S_num = []
    for s in S:
        S_num.append(len(s) - 2)
    ls = [0 for i in range(1000)]
    for s in S_num:
        ls[s] += 1
    max_index = 0
    for i in range(1, 1000):
        if ls[max_index] <= ls[i]:
            max_index = i
    print(max_index)
if __name__ == '__main__':
    main()
            
            
            
        