結果

問題 No.495 (^^*) Easy
ユーザー wata_pythonwata_python
提出日時 2019-08-16 11:54:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 11,768 KB
実行使用メモリ 10,120 KB
最終ジャッジ日時 2023-10-22 00:43:05
合計ジャッジ時間 1,395 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,984 KB
testcase_01 AC 29 ms
9,984 KB
testcase_02 AC 29 ms
9,984 KB
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 29 ms
9,988 KB
testcase_05 AC 33 ms
10,008 KB
testcase_06 AC 68 ms
10,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
cntL=0
cntR=0
for i in range(len(s)-2):
    a=s[i]+s[i+1]
    if a=="^*":
        cntL+=1
    elif a=="*^":
        cntR+=1
print(cntL, cntR)
0