結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,212 KB
testcase_01 AC 39 ms
52,356 KB
testcase_02 AC 39 ms
52,068 KB
testcase_03 AC 40 ms
52,408 KB
testcase_04 AC 39 ms
52,864 KB
testcase_05 AC 39 ms
52,376 KB
testcase_06 AC 40 ms
52,448 KB
testcase_07 AC 39 ms
51,900 KB
testcase_08 AC 40 ms
52,424 KB
testcase_09 AC 38 ms
53,228 KB
testcase_10 AC 41 ms
52,304 KB
testcase_11 AC 39 ms
52,380 KB
testcase_12 AC 38 ms
53,200 KB
testcase_13 AC 40 ms
53,084 KB
testcase_14 AC 39 ms
53,288 KB
testcase_15 AC 38 ms
52,200 KB
testcase_16 AC 39 ms
51,820 KB
testcase_17 AC 44 ms
52,828 KB
testcase_18 AC 39 ms
52,380 KB
testcase_19 AC 37 ms
52,440 KB
testcase_20 AC 37 ms
52,668 KB
testcase_21 AC 37 ms
52,236 KB
testcase_22 AC 40 ms
52,732 KB
testcase_23 AC 41 ms
52,000 KB
testcase_24 AC 39 ms
51,876 KB
testcase_25 AC 38 ms
52,348 KB
testcase_26 AC 37 ms
52,756 KB
testcase_27 AC 37 ms
52,488 KB
testcase_28 AC 39 ms
51,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
mod = 998244353

N,L = map(int,stdin.readline().split())
N = (N+(L-1)) // L

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