結果

問題 No.741 AscNumber(Easy)
ユーザー c-yanc-yan
提出日時 2020-12-02 01:19:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 450 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 1,179 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 77,092 KB
最終ジャッジ日時 2023-10-11 04:14:46
合計ジャッジ時間 11,548 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,532 KB
testcase_01 AC 73 ms
71,408 KB
testcase_02 AC 74 ms
71,412 KB
testcase_03 AC 72 ms
71,016 KB
testcase_04 AC 73 ms
71,232 KB
testcase_05 AC 73 ms
71,384 KB
testcase_06 AC 73 ms
71,160 KB
testcase_07 AC 74 ms
71,352 KB
testcase_08 AC 73 ms
71,424 KB
testcase_09 AC 73 ms
71,212 KB
testcase_10 AC 71 ms
71,412 KB
testcase_11 AC 75 ms
71,280 KB
testcase_12 AC 72 ms
71,396 KB
testcase_13 AC 71 ms
71,152 KB
testcase_14 AC 73 ms
71,232 KB
testcase_15 AC 72 ms
71,332 KB
testcase_16 AC 73 ms
71,152 KB
testcase_17 AC 72 ms
71,152 KB
testcase_18 AC 73 ms
71,424 KB
testcase_19 AC 74 ms
71,396 KB
testcase_20 AC 86 ms
76,388 KB
testcase_21 AC 78 ms
76,496 KB
testcase_22 AC 79 ms
76,400 KB
testcase_23 AC 79 ms
76,436 KB
testcase_24 AC 77 ms
76,192 KB
testcase_25 AC 79 ms
76,612 KB
testcase_26 AC 81 ms
76,332 KB
testcase_27 AC 79 ms
76,600 KB
testcase_28 AC 79 ms
76,264 KB
testcase_29 AC 81 ms
76,504 KB
testcase_30 AC 80 ms
76,460 KB
testcase_31 AC 81 ms
76,552 KB
testcase_32 AC 77 ms
76,192 KB
testcase_33 AC 81 ms
76,520 KB
testcase_34 AC 80 ms
76,460 KB
testcase_35 AC 434 ms
76,832 KB
testcase_36 AC 236 ms
76,804 KB
testcase_37 AC 264 ms
76,948 KB
testcase_38 AC 259 ms
76,904 KB
testcase_39 AC 231 ms
76,928 KB
testcase_40 AC 287 ms
76,928 KB
testcase_41 AC 402 ms
76,648 KB
testcase_42 AC 252 ms
76,800 KB
testcase_43 AC 205 ms
76,924 KB
testcase_44 AC 329 ms
76,880 KB
testcase_45 AC 350 ms
76,804 KB
testcase_46 AC 416 ms
76,884 KB
testcase_47 AC 138 ms
76,900 KB
testcase_48 AC 413 ms
76,884 KB
testcase_49 AC 359 ms
76,884 KB
testcase_50 AC 120 ms
76,812 KB
testcase_51 AC 212 ms
76,808 KB
testcase_52 AC 450 ms
76,972 KB
testcase_53 AC 447 ms
77,092 KB
testcase_54 AC 444 ms
77,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

m = 1000000007

dp = [0] * 10
dp[0] = 1
for _ in range(N):
    for i in range(8, -1, -1):
        for j in range(i + 1, 10):
            dp[j] += dp[i]
            dp[j] %= m
print(sum(dp) % m)
0