結果

問題 No.706 多眼生物の調査
ユーザー gorugo30gorugo30
提出日時 2021-02-24 11:43:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,432 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 256,932 KB
最終ジャッジ日時 2023-10-24 18:49:26
合計ジャッジ時間 2,949 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
55,448 KB
testcase_01 AC 35 ms
55,448 KB
testcase_02 AC 35 ms
55,448 KB
testcase_03 AC 41 ms
55,448 KB
testcase_04 AC 82 ms
61,592 KB
testcase_05 AC 421 ms
94,484 KB
testcase_06 AC 1,432 ms
256,932 KB
testcase_07 AC 37 ms
55,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = [input() for i in range(N)]
T = ""
for i in range(N):
    T += S[i]
maxeye = -1
eyen = -1
for i in range(1000):
    x = T.count("(" + "^" * i + ")")
    if x >= maxeye:
        maxeye = x
        eyen = i
print(eyen)
0