結果

問題 No.1186 長方形の敷き詰め
ユーザー 👑 rin204rin204
提出日時 2022-01-18 22:25:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 66,400 KB
最終ジャッジ日時 2024-05-02 19:33:38
合計ジャッジ時間 2,616 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,840 KB
testcase_01 AC 42 ms
51,584 KB
testcase_02 AC 44 ms
60,032 KB
testcase_03 AC 38 ms
51,584 KB
testcase_04 AC 38 ms
51,456 KB
testcase_05 AC 40 ms
51,840 KB
testcase_06 AC 38 ms
51,712 KB
testcase_07 AC 38 ms
51,968 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 38 ms
51,712 KB
testcase_12 AC 38 ms
51,712 KB
testcase_13 AC 38 ms
51,712 KB
testcase_14 AC 37 ms
51,584 KB
testcase_15 AC 38 ms
51,328 KB
testcase_16 AC 39 ms
51,584 KB
testcase_17 AC 39 ms
54,400 KB
testcase_18 AC 41 ms
56,960 KB
testcase_19 AC 40 ms
57,600 KB
testcase_20 AC 42 ms
58,496 KB
testcase_21 AC 40 ms
56,704 KB
testcase_22 AC 52 ms
65,664 KB
testcase_23 AC 48 ms
62,080 KB
testcase_24 AC 48 ms
64,640 KB
testcase_25 AC 45 ms
61,824 KB
testcase_26 AC 40 ms
56,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

n, m = map(int, input().split())

dp = [1] * (m + 1)
for i in range(n, m + 1):
    dp[i] = dp[i - 1] + dp[i - n]
    dp[i] %= MOD

print(dp[-1])
0