結果
| 問題 |
No.1159 Sashiming String
|
| ユーザー |
|
| 提出日時 | 2022-01-27 18:10:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 176 bytes |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2024-12-25 20:41:21 |
| 合計ジャッジ時間 | 2,626 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 12 |
ソースコード
S = int(input())
counts = 0
counti = 0
for i in range(len(S)-3,-1,-1):
if S[i:i+3] == 'ing':
counti += 1
if S[i] == "S":
counts += counti
print(counts)