結果

問題 No.1184 Hà Nội
ユーザー lemondolemondo
提出日時 2020-08-22 13:27:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 53,896 KB
最終ジャッジ日時 2024-04-23 07:54:28
合計ジャッジ時間 2,287 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,620 KB
testcase_01 AC 40 ms
52,328 KB
testcase_02 AC 39 ms
53,280 KB
testcase_03 AC 40 ms
52,252 KB
testcase_04 AC 43 ms
52,400 KB
testcase_05 AC 40 ms
52,352 KB
testcase_06 AC 38 ms
53,448 KB
testcase_07 AC 38 ms
53,088 KB
testcase_08 AC 38 ms
52,232 KB
testcase_09 AC 42 ms
52,680 KB
testcase_10 AC 37 ms
53,032 KB
testcase_11 AC 40 ms
52,540 KB
testcase_12 AC 40 ms
53,680 KB
testcase_13 AC 39 ms
52,744 KB
testcase_14 AC 40 ms
53,896 KB
testcase_15 AC 41 ms
52,368 KB
testcase_16 AC 39 ms
53,060 KB
testcase_17 AC 40 ms
53,300 KB
testcase_18 AC 38 ms
53,024 KB
testcase_19 AC 42 ms
52,932 KB
testcase_20 AC 41 ms
52,192 KB
testcase_21 AC 44 ms
52,936 KB
testcase_22 AC 42 ms
52,088 KB
testcase_23 AC 39 ms
52,332 KB
testcase_24 AC 40 ms
52,616 KB
testcase_25 AC 39 ms
53,008 KB
testcase_26 AC 40 ms
52,344 KB
testcase_27 AC 40 ms
52,440 KB
testcase_28 AC 40 ms
52,220 KB
権限があれば一括ダウンロードができます

ソースコード

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