結果

問題 No.1186 長方形の敷き詰め
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-09-16 21:52:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 1,070 ms
コンパイル使用メモリ 86,616 KB
実行使用メモリ 83,920 KB
最終ジャッジ日時 2023-09-04 04:00:14
合計ジャッジ時間 4,520 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,236 KB
testcase_01 AC 80 ms
71,240 KB
testcase_02 AC 96 ms
83,852 KB
testcase_03 AC 81 ms
71,272 KB
testcase_04 AC 80 ms
71,092 KB
testcase_05 AC 78 ms
71,248 KB
testcase_06 AC 79 ms
71,080 KB
testcase_07 AC 80 ms
71,104 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 82 ms
75,792 KB
testcase_12 AC 80 ms
75,908 KB
testcase_13 AC 83 ms
75,728 KB
testcase_14 AC 84 ms
75,868 KB
testcase_15 AC 83 ms
75,980 KB
testcase_16 AC 84 ms
75,976 KB
testcase_17 AC 91 ms
78,188 KB
testcase_18 AC 86 ms
80,968 KB
testcase_19 AC 88 ms
81,764 KB
testcase_20 AC 92 ms
82,808 KB
testcase_21 AC 89 ms
80,420 KB
testcase_22 AC 93 ms
83,920 KB
testcase_23 AC 91 ms
80,360 KB
testcase_24 AC 93 ms
83,012 KB
testcase_25 AC 91 ms
80,164 KB
testcase_26 AC 89 ms
80,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

d = [0]*(m+1)
d[0] = 1
for i in range(m):
    d[i+1] += d[i]
    d[i+1] %= mod
    if i+n <= m:
        d[i+n] += d[i]
        d[i+n] %= mod
print(d[-1]%mod)
0