結果
| 問題 |
No.1159 Sashiming String
|
| ユーザー |
|
| 提出日時 | 2020-08-11 15:30:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 2,000 ms |
| コード長 | 165 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-09 11:26:05 |
| 合計ジャッジ時間 | 1,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
s = input()
s_count = 0
ans = 0
for i in range(len(s) - 2):
if s[i] == "S":
s_count += 1
elif s[i:i + 3] == "ing":
ans += s_count
print(ans)