結果

問題 No.495 (^^*) Easy
ユーザー brthyyjpbrthyyjp
提出日時 2020-11-23 21:08:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 75,712 KB
最終ジャッジ日時 2023-10-01 00:06:23
合計ジャッジ時間 2,284 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,892 KB
testcase_01 AC 72 ms
70,780 KB
testcase_02 AC 70 ms
70,884 KB
testcase_03 AC 71 ms
71,088 KB
testcase_04 AC 69 ms
71,024 KB
testcase_05 AC 82 ms
75,712 KB
testcase_06 AC 77 ms
75,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
l = 0
r = 0
n = len(s)
for i in range(n):
    if s[i] == ')':
        if s[i-1] == '*':
            l += 1
        else:
            r += 1
print(l, r)
0