結果

問題 No.1186 長方形の敷き詰め
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-02-23 02:53:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 183 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 11,676 KB
実行使用メモリ 812,760 KB
最終ジャッジ日時 2023-10-21 20:22:07
合計ジャッジ時間 4,799 ms
ジャッジサーバーID
(参考情報)
judge10 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,012 KB
testcase_01 AC 29 ms
10,012 KB
testcase_02 AC 245 ms
17,604 KB
testcase_03 AC 26 ms
10,012 KB
testcase_04 AC 25 ms
10,012 KB
testcase_05 AC 25 ms
10,012 KB
testcase_06 AC 25 ms
10,012 KB
testcase_07 AC 25 ms
10,012 KB
testcase_08 AC 25 ms
10,012 KB
testcase_09 AC 27 ms
10,012 KB
testcase_10 AC 26 ms
10,012 KB
testcase_11 AC 27 ms
10,024 KB
testcase_12 AC 27 ms
10,068 KB
testcase_13 AC 26 ms
10,012 KB
testcase_14 AC 27 ms
10,060 KB
testcase_15 AC 27 ms
10,024 KB
testcase_16 AC 27 ms
10,024 KB
testcase_17 AC 98 ms
12,188 KB
testcase_18 AC 175 ms
15,020 KB
testcase_19 AC 193 ms
15,820 KB
testcase_20 AC 207 ms
16,548 KB
testcase_21 AC 159 ms
14,500 KB
testcase_22 MLE -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
if n == 1: exit(print(1))
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]
print(dp[m])
0