結果

問題 No.741 AscNumber(Easy)
ユーザー c-yanc-yan
提出日時 2020-12-02 01:19:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 620 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 77,328 KB
最終ジャッジ日時 2023-10-11 04:14:34
合計ジャッジ時間 13,450 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,192 KB
testcase_01 AC 73 ms
71,324 KB
testcase_02 AC 73 ms
71,464 KB
testcase_03 AC 73 ms
71,384 KB
testcase_04 AC 73 ms
71,508 KB
testcase_05 AC 72 ms
71,380 KB
testcase_06 AC 72 ms
71,444 KB
testcase_07 AC 73 ms
71,324 KB
testcase_08 AC 73 ms
71,608 KB
testcase_09 AC 72 ms
71,488 KB
testcase_10 AC 73 ms
71,656 KB
testcase_11 AC 71 ms
71,660 KB
testcase_12 AC 71 ms
71,268 KB
testcase_13 AC 73 ms
71,624 KB
testcase_14 AC 76 ms
71,384 KB
testcase_15 AC 73 ms
71,336 KB
testcase_16 AC 73 ms
71,624 KB
testcase_17 AC 73 ms
71,564 KB
testcase_18 AC 78 ms
75,908 KB
testcase_19 AC 78 ms
75,912 KB
testcase_20 AC 81 ms
76,396 KB
testcase_21 AC 81 ms
76,708 KB
testcase_22 AC 84 ms
76,704 KB
testcase_23 AC 79 ms
76,716 KB
testcase_24 AC 77 ms
76,644 KB
testcase_25 AC 79 ms
76,556 KB
testcase_26 AC 79 ms
76,360 KB
testcase_27 AC 77 ms
76,352 KB
testcase_28 AC 78 ms
76,572 KB
testcase_29 AC 80 ms
76,856 KB
testcase_30 AC 80 ms
76,784 KB
testcase_31 AC 78 ms
76,700 KB
testcase_32 AC 79 ms
76,688 KB
testcase_33 AC 79 ms
76,868 KB
testcase_34 AC 81 ms
76,720 KB
testcase_35 AC 597 ms
77,288 KB
testcase_36 AC 303 ms
77,192 KB
testcase_37 AC 341 ms
76,800 KB
testcase_38 AC 339 ms
77,192 KB
testcase_39 AC 301 ms
77,328 KB
testcase_40 AC 377 ms
76,772 KB
testcase_41 AC 548 ms
77,052 KB
testcase_42 AC 332 ms
77,076 KB
testcase_43 AC 262 ms
77,212 KB
testcase_44 AC 446 ms
77,228 KB
testcase_45 AC 474 ms
77,256 KB
testcase_46 AC 569 ms
76,772 KB
testcase_47 AC 165 ms
77,236 KB
testcase_48 AC 570 ms
76,820 KB
testcase_49 AC 487 ms
76,992 KB
testcase_50 AC 133 ms
77,048 KB
testcase_51 AC 271 ms
77,000 KB
testcase_52 AC 619 ms
77,124 KB
testcase_53 AC 620 ms
77,276 KB
testcase_54 AC 617 ms
77,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

m = 1000000007

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