結果

問題 No.495 (^^*) Easy
ユーザー 炭酸水炭酸水
提出日時 2022-05-14 01:38:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 8,152 KB
最終ジャッジ日時 2023-09-29 12:17:57
合計ジャッジ時間 765 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,964 KB
testcase_01 AC 13 ms
7,828 KB
testcase_02 AC 12 ms
7,816 KB
testcase_03 AC 12 ms
7,892 KB
testcase_04 AC 11 ms
7,904 KB
testcase_05 AC 12 ms
7,760 KB
testcase_06 AC 18 ms
8,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = "#" + input()

n = (len(s) - 2) // 5

L = 0
R = 0

for i in range(n):
    if s[i * 5 + 2] == "*":
        R += 1
    else:
        L += 1

print(L, R)    
0