結果
| 問題 | No.3458 Scores of Subsequence |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2026-02-28 19:54:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 83,584 KB |
| 最終ジャッジ日時 | 2026-07-25 07:17:11 |
| 合計ジャッジ時間 | 3,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 3 WA * 22 |
ソースコード
s=input() M=998244353 m=0 a=0 for c in s: if c=="M": m+=1 else: a+=pow(3,m,M)-1 print(a%M)
sasa8uyauya