結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-10-18 16:46:42 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 2,000 ms | 
| コード長 | 309 bytes | 
| コンパイル時間 | 114 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-06-29 00:23:11 | 
| 合計ジャッジ時間 | 813 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
from collections import defaultdict, Counter
def main():
    N = int(input())
    animals = defaultdict(int)
    for _ in range(N):
        animals[input()] += 1
    print(max(Counter(animals).most_common(),
          key=lambda elm: (elm[1], elm[0]))[0].count("^"))
if __name__ == "__main__":
    main()
            
            
            
        