結果

問題 No.741 AscNumber(Easy)
ユーザー AEnAEn
提出日時 2022-05-19 09:20:34
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 262 bytes
コンパイル時間 1,501 ms
コンパイル使用メモリ 81,660 KB
実行使用メモリ 746,464 KB
最終ジャッジ日時 2023-10-17 17:23:59
合計ジャッジ時間 9,184 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 AC 38 ms
53,484 KB
testcase_02 AC 38 ms
53,484 KB
testcase_03 AC 38 ms
53,484 KB
testcase_04 AC 38 ms
53,484 KB
testcase_05 AC 38 ms
53,484 KB
testcase_06 AC 38 ms
53,484 KB
testcase_07 AC 37 ms
53,484 KB
testcase_08 AC 37 ms
53,484 KB
testcase_09 AC 37 ms
53,484 KB
testcase_10 AC 37 ms
53,484 KB
testcase_11 AC 38 ms
53,484 KB
testcase_12 AC 38 ms
53,484 KB
testcase_13 AC 38 ms
53,484 KB
testcase_14 AC 38 ms
53,484 KB
testcase_15 AC 37 ms
53,484 KB
testcase_16 AC 38 ms
53,484 KB
testcase_17 AC 38 ms
53,484 KB
testcase_18 AC 37 ms
53,484 KB
testcase_19 AC 37 ms
53,484 KB
testcase_20 AC 44 ms
59,972 KB
testcase_21 AC 42 ms
59,640 KB
testcase_22 AC 44 ms
59,972 KB
testcase_23 AC 44 ms
59,972 KB
testcase_24 AC 42 ms
59,640 KB
testcase_25 AC 42 ms
59,640 KB
testcase_26 AC 43 ms
59,972 KB
testcase_27 AC 41 ms
59,640 KB
testcase_28 AC 43 ms
59,640 KB
testcase_29 AC 43 ms
59,640 KB
testcase_30 AC 43 ms
59,972 KB
testcase_31 AC 45 ms
59,972 KB
testcase_32 AC 38 ms
53,484 KB
testcase_33 AC 44 ms
59,972 KB
testcase_34 AC 43 ms
59,972 KB
testcase_35 TLE -
testcase_36 AC 1,098 ms
350,396 KB
testcase_37 AC 1,343 ms
404,936 KB
testcase_38 AC 1,309 ms
394,780 KB
testcase_39 AC 1,007 ms
340,128 KB
testcase_40 AC 1,478 ms
430,376 KB
testcase_41 TLE -
testcase_42 AC 1,272 ms
383,220 KB
testcase_43 AC 847 ms
315,364 KB
testcase_44 MLE -
testcase_45 TLE -
testcase_46 TLE -
testcase_47 AC 349 ms
177,364 KB
testcase_48 TLE -
testcase_49 TLE -
testcase_50 AC 240 ms
135,816 KB
testcase_51 AC 892 ms
317,104 KB
testcase_52 TLE -
testcase_53 TLE -
testcase_54 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
res = 10
mod = 10**9+7
dp = [[0]*10 for _ in range(N)]
for i in range(10):
    dp[0][i] = 1
for i in range(1, N):
    sm = 0
    for j in range(1,10):
        sm += dp[i-1][j]
        dp[i][j] = sm
        res += sm
        res %= mod
print(res)
0