結果

問題 No.495 (^^*) Easy
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-09 13:12:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 6,516 KB
実行使用メモリ 8,868 KB
最終ジャッジ日時 2023-09-14 17:41:41
合計ジャッジ時間 779 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,008 KB
testcase_01 AC 11 ms
5,860 KB
testcase_02 AC 11 ms
6,016 KB
testcase_03 AC 11 ms
5,940 KB
testcase_04 AC 12 ms
5,952 KB
testcase_05 AC 14 ms
6,356 KB
testcase_06 AC 30 ms
8,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = raw_input()
left = 0
right = 0
for i in range(0, len(S)):
	if S[i] == '*':
		if i%5 == 3: left += 1
		elif i%5 == 1: right += 1
print str(left) + ' ' + str(right)
0