結果

問題 No.1159 Sashiming String
ユーザー _matumo__matumo_
提出日時 2021-02-23 20:48:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 89 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 11,816 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2023-10-23 21:41:18
合計ジャッジ時間 1,989 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,944 KB
testcase_01 AC 26 ms
9,944 KB
testcase_02 AC 39 ms
10,124 KB
testcase_03 AC 48 ms
10,316 KB
testcase_04 AC 37 ms
10,148 KB
testcase_05 AC 44 ms
10,368 KB
testcase_06 AC 37 ms
10,152 KB
testcase_07 AC 40 ms
10,188 KB
testcase_08 AC 46 ms
10,316 KB
testcase_09 AC 51 ms
10,316 KB
testcase_10 AC 26 ms
9,944 KB
testcase_11 AC 27 ms
9,944 KB
testcase_12 AC 26 ms
9,944 KB
testcase_13 AC 26 ms
9,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=m=0
for c in input().replace('ing','.'):
    if c=='S':s+=1
    if c=='.':m+=s
print(m)
0