結果
| 問題 | 
                            No.2636 No Waiting in Vain
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-03-11 18:53:38 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 198 bytes | 
| コンパイル時間 | 168 ms | 
| コンパイル使用メモリ | 82,580 KB | 
| 実行使用メモリ | 76,376 KB | 
| 最終ジャッジ日時 | 2024-09-29 22:04:36 | 
| 合計ジャッジ時間 | 4,012 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 43 | 
ソースコード
n,k = map(int,input().split()) s = input() free_day = 0 for index,i in enumerate(s): if i == "N": free_day += 1 if i == "C" and index!=n-1: free_day -= 1 print(free_day*(free_day-1)%998244353)