結果

問題 No.1184 Hà Nội
ユーザー もりを
提出日時 2020-08-22 13:08:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-10-15 07:16:18
合計ジャッジ時間 2,182 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

n,l = map(int,input().split())
p = (n + l - 1) // l
mod = 998244353
res = pow(2, p, mod)
if res == 0:
    res = mod - 1
else:
    res -= 1
print(res)
0