結果
| 問題 | No.3458 Scores of Subsequence |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2026-02-28 19:54:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 368 ms |
| コンパイル使用メモリ | 78,092 KB |
| 実行使用メモリ | 72,732 KB |
| 最終ジャッジ日時 | 2026-02-28 19:54:09 |
| 合計ジャッジ時間 | 3,516 ms |
|
ジャッジサーバーID (参考情報) |
judge7 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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