結果

問題 No.706 多眼生物の調査
ユーザー tarotaro789
提出日時 2018-07-07 17:13:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-07-04 20:09:18
合計ジャッジ時間 1,264 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
n=int(input())
ls=[]
for i in range(n):
    ls.append(input())
cnt=0
cls=[]
for j in range(n):
    for i in range(len(ls[j])):
        if ls[j][i]=="^":
            cnt=cnt+1
        if ls[j][i]==")":
            cls.append(cnt)
            cnt=0

c=collections.Counter(cls)
mx=0
for num,cont in c.most_common():
    if mx<cont:
        mx=cont
        print(num)
0