結果

問題 No.741 AscNumber(Easy)
ユーザー ntudantuda
提出日時 2024-02-29 20:18:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,122 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 75,864 KB
最終ジャッジ日時 2024-02-29 20:18:23
合計ジャッジ時間 19,319 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,456 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 35 ms
53,460 KB
testcase_03 AC 36 ms
53,460 KB
testcase_04 AC 35 ms
53,460 KB
testcase_05 AC 36 ms
53,460 KB
testcase_06 AC 35 ms
53,460 KB
testcase_07 AC 35 ms
53,460 KB
testcase_08 AC 35 ms
53,460 KB
testcase_09 AC 35 ms
53,460 KB
testcase_10 AC 35 ms
53,460 KB
testcase_11 AC 36 ms
53,460 KB
testcase_12 AC 35 ms
53,460 KB
testcase_13 AC 36 ms
53,460 KB
testcase_14 AC 35 ms
53,460 KB
testcase_15 AC 35 ms
53,460 KB
testcase_16 AC 35 ms
53,460 KB
testcase_17 AC 35 ms
53,460 KB
testcase_18 AC 38 ms
56,916 KB
testcase_19 AC 37 ms
56,916 KB
testcase_20 AC 59 ms
66,644 KB
testcase_21 AC 46 ms
62,356 KB
testcase_22 AC 54 ms
70,744 KB
testcase_23 AC 52 ms
68,696 KB
testcase_24 AC 45 ms
62,356 KB
testcase_25 AC 49 ms
64,440 KB
testcase_26 AC 52 ms
68,696 KB
testcase_27 AC 46 ms
64,440 KB
testcase_28 AC 46 ms
62,356 KB
testcase_29 AC 48 ms
64,440 KB
testcase_30 AC 54 ms
68,696 KB
testcase_31 AC 52 ms
66,644 KB
testcase_32 AC 42 ms
59,128 KB
testcase_33 AC 53 ms
68,696 KB
testcase_34 AC 53 ms
70,744 KB
testcase_35 AC 1,071 ms
75,864 KB
testcase_36 AC 506 ms
75,736 KB
testcase_37 AC 612 ms
75,864 KB
testcase_38 AC 601 ms
75,736 KB
testcase_39 AC 576 ms
75,736 KB
testcase_40 AC 677 ms
75,736 KB
testcase_41 AC 1,058 ms
75,864 KB
testcase_42 AC 565 ms
75,736 KB
testcase_43 AC 470 ms
75,736 KB
testcase_44 AC 777 ms
75,864 KB
testcase_45 AC 841 ms
75,736 KB
testcase_46 AC 1,022 ms
75,864 KB
testcase_47 AC 215 ms
75,736 KB
testcase_48 AC 984 ms
75,864 KB
testcase_49 AC 809 ms
75,736 KB
testcase_50 AC 195 ms
75,736 KB
testcase_51 AC 433 ms
75,736 KB
testcase_52 AC 1,106 ms
75,864 KB
testcase_53 AC 1,089 ms
75,864 KB
testcase_54 AC 1,122 ms
75,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9+7
N = int(input())
dp = [1] * 10
for i in range(N):
    dp2 = [0] * 10
    for j in range(10):
        dp2[j] = sum(dp[0:j+1])
        dp2[j] %= MOD
    dp = dp2
print(dp[-1])
0