結果
| 問題 | No.1159 Sashiming String |
| ユーザー |
|
| 提出日時 | 2022-01-27 18:11:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 2,000 ms |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 799 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 60,416 KB |
| 最終ジャッジ日時 | 2026-05-31 13:30:08 |
| 合計ジャッジ時間 | 1,861 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
S = 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)