結果

問題 No.1184 Hà Nội
ユーザー missionelmissionel
提出日時 2020-08-31 21:24:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 53,864 KB
最終ジャッジ日時 2024-04-28 11:13:03
合計ジャッジ時間 2,126 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,480 KB
testcase_01 AC 38 ms
52,568 KB
testcase_02 AC 38 ms
52,604 KB
testcase_03 AC 38 ms
53,180 KB
testcase_04 AC 38 ms
53,864 KB
testcase_05 AC 38 ms
52,936 KB
testcase_06 AC 38 ms
52,576 KB
testcase_07 AC 38 ms
52,504 KB
testcase_08 AC 39 ms
52,216 KB
testcase_09 AC 38 ms
52,396 KB
testcase_10 AC 38 ms
53,208 KB
testcase_11 AC 39 ms
52,400 KB
testcase_12 AC 37 ms
53,220 KB
testcase_13 AC 38 ms
52,316 KB
testcase_14 AC 38 ms
52,944 KB
testcase_15 AC 38 ms
52,008 KB
testcase_16 AC 38 ms
52,652 KB
testcase_17 AC 38 ms
52,876 KB
testcase_18 AC 37 ms
52,468 KB
testcase_19 AC 39 ms
52,484 KB
testcase_20 AC 37 ms
52,868 KB
testcase_21 AC 38 ms
52,684 KB
testcase_22 WA -
testcase_23 AC 38 ms
52,004 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 38 ms
52,744 KB
testcase_28 AC 38 ms
52,004 KB
権限があれば一括ダウンロードができます

ソースコード

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 - 1
print(ans)
0