結果
| 問題 | 
                            No.1184 Hà Nội
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ytft
                         | 
                    
| 提出日時 | 2022-03-21 17:31:03 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 40 ms / 2,000 ms | 
| コード長 | 226 bytes | 
| コンパイル時間 | 262 ms | 
| コンパイル使用メモリ | 82,396 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-10-09 04:47:49 | 
| 合計ジャッジ時間 | 2,237 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 27 | 
ソースコード
import sys input=lambda:sys.stdin.readline().rstrip() mod=998244353 N,L=map(int,input().split()) time=(N+L-1)//L ans=1 temp=2 while time: if time%2: ans=(ans*temp)%mod temp=(temp*temp)%mod time//=2 print((ans+mod-1)%mod)
            
ytft