結果

問題 No.1184 Hà Nội
ユーザー Chihaya_chan
提出日時 2020-09-01 23:58:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-20 22:12:29
合計ジャッジ時間 2,078 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N, L = map(int, input().split())
mod = 998244353
cnt = N//L + (N%L != 0)
print((pow(2, cnt, mod) - 1) % mod)
0