結果

問題 No.741 AscNumber(Easy)
ユーザー Nikkuniku029Nikkuniku029
提出日時 2022-08-13 16:39:57
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 383 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 81,788 KB
実行使用メモリ 80,456 KB
最終ジャッジ日時 2023-10-25 00:46:31
合計ジャッジ時間 5,762 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,360 KB
testcase_01 AC 37 ms
53,360 KB
testcase_02 AC 37 ms
53,360 KB
testcase_03 AC 36 ms
53,360 KB
testcase_04 AC 37 ms
53,360 KB
testcase_05 AC 37 ms
53,360 KB
testcase_06 AC 37 ms
53,360 KB
testcase_07 AC 37 ms
53,360 KB
testcase_08 AC 38 ms
53,360 KB
testcase_09 AC 37 ms
53,360 KB
testcase_10 AC 37 ms
53,360 KB
testcase_11 AC 37 ms
53,360 KB
testcase_12 AC 37 ms
53,360 KB
testcase_13 AC 37 ms
53,360 KB
testcase_14 AC 37 ms
53,360 KB
testcase_15 AC 38 ms
53,360 KB
testcase_16 AC 37 ms
53,360 KB
testcase_17 AC 38 ms
53,360 KB
testcase_18 AC 37 ms
53,360 KB
testcase_19 AC 37 ms
53,360 KB
testcase_20 AC 45 ms
59,948 KB
testcase_21 AC 45 ms
59,948 KB
testcase_22 AC 45 ms
59,948 KB
testcase_23 AC 45 ms
59,948 KB
testcase_24 AC 45 ms
59,948 KB
testcase_25 AC 45 ms
59,948 KB
testcase_26 AC 44 ms
59,948 KB
testcase_27 AC 45 ms
59,948 KB
testcase_28 AC 45 ms
59,948 KB
testcase_29 AC 44 ms
59,948 KB
testcase_30 AC 44 ms
59,948 KB
testcase_31 AC 44 ms
59,948 KB
testcase_32 AC 39 ms
53,360 KB
testcase_33 AC 44 ms
59,948 KB
testcase_34 AC 45 ms
59,948 KB
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
testcase_52 RE -
testcase_53 RE -
testcase_54 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
n = str(pow(10, k))
m = len(n)
MOD = 1000_000_007
dp = [[0]*11 for _ in range(2)]
dp[0][0] = 1
for i in range(m):
    for j in range(10):
        dp[0][j+1] += dp[0][j]
        dp[0][j+1] %= MOD
        dp[0][j] = dp[0][j] % MOD

        dp[1][j+1] += dp[1][j]
        dp[1][j+1] %= MOD
        dp[1][j] = (dp[0][j]+dp[1][j]) % MOD


ans = dp[0][9] % MOD
print(ans)
0