結果

問題 No.1184 Hà Nội
ユーザー missionel
提出日時 2020-08-31 21:19:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-17 02:25:58
合計ジャッジ時間 2,326 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N, L = map(int, input().split())
mod = 998244353

M = math.ceil(N / L)
ans = pow(2, M, mod) - 1
if ans == -1:
    ans = mod
print(ans)
0