結果

問題 No.706 多眼生物の調査
ユーザー tarotaro789tarotaro789
提出日時 2018-07-07 17:13:30
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 9,076 KB
最終ジャッジ日時 2023-09-18 03:32:53
合計ジャッジ時間 1,256 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,576 KB
testcase_01 AC 18 ms
8,572 KB
testcase_02 AC 19 ms
8,632 KB
testcase_03 AC 22 ms
8,548 KB
testcase_04 AC 31 ms
8,516 KB
testcase_05 AC 75 ms
8,744 KB
testcase_06 WA -
testcase_07 AC 18 ms
8,520 KB
権限があれば一括ダウンロードができます

ソースコード

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