結果

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

ソースコード

diff #

import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

N, L = mapint()
mod = 998244353

N = -(-N//L)
print((pow(2, N, mod)-1)%mod)
0