結果

問題 No.1186 長方形の敷き詰め
ユーザー qumazakiqumazaki
提出日時 2020-09-04 02:13:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 67,868 KB
最終ジャッジ日時 2024-05-03 12:02:49
合計ジャッジ時間 2,476 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,352 KB
testcase_01 AC 41 ms
51,712 KB
testcase_02 AC 55 ms
66,048 KB
testcase_03 AC 41 ms
52,096 KB
testcase_04 AC 39 ms
51,840 KB
testcase_05 AC 40 ms
51,840 KB
testcase_06 AC 38 ms
51,840 KB
testcase_07 AC 38 ms
52,224 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 42 ms
58,240 KB
testcase_12 AC 41 ms
57,856 KB
testcase_13 AC 41 ms
57,856 KB
testcase_14 AC 44 ms
58,240 KB
testcase_15 AC 45 ms
58,368 KB
testcase_16 AC 45 ms
58,112 KB
testcase_17 AC 49 ms
60,672 KB
testcase_18 AC 48 ms
63,220 KB
testcase_19 AC 53 ms
64,256 KB
testcase_20 AC 51 ms
65,024 KB
testcase_21 AC 48 ms
62,720 KB
testcase_22 AC 55 ms
66,304 KB
testcase_23 AC 50 ms
62,848 KB
testcase_24 AC 54 ms
65,664 KB
testcase_25 AC 53 ms
63,352 KB
testcase_26 AC 53 ms
62,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dp = [0] * (m+1)
dp[0] = 1
for i in range(1,m+1):
    dp[i] += dp[i-1]
    if(i>=n):
        dp[i] += dp[i-n]
    dp[i] %= mod

print(dp[-1])
0