結果

問題 No.495 (^^*) Easy
ユーザー fiordfiord
提出日時 2017-03-24 22:50:09
言語 Python2
(2.7.18)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,092 KB
最終ジャッジ日時 2023-09-20 01:55:12
合計ジャッジ時間 754 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,996 KB
testcase_01 AC 11 ms
5,888 KB
testcase_02 AC 11 ms
6,092 KB
testcase_03 AC 12 ms
5,952 KB
testcase_04 AC 10 ms
5,936 KB
testcase_05 AC 11 ms
5,852 KB
testcase_06 AC 18 ms
6,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=raw_input()
left="(^^*)"
right="(*^^)"
l=0
r=0
i=0
while i<len(s):
	if s[i:i+5]==left:
		l+=1
	elif s[i:i+5]==right:
		r+=1
	i+=5
print l,r
0