結果

問題 No.741 AscNumber(Easy)
ユーザー syunsukesyunsuke
提出日時 2019-09-11 15:57:20
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 343 bytes
コンパイル時間 1,090 ms
コンパイル使用メモリ 86,592 KB
実行使用メモリ 227,432 KB
最終ジャッジ日時 2023-09-15 13:50:57
合計ジャッジ時間 31,899 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,356 KB
testcase_01 AC 71 ms
71,092 KB
testcase_02 AC 70 ms
71,204 KB
testcase_03 AC 72 ms
71,212 KB
testcase_04 AC 72 ms
71,280 KB
testcase_05 AC 72 ms
71,464 KB
testcase_06 AC 70 ms
71,084 KB
testcase_07 AC 75 ms
71,312 KB
testcase_08 AC 75 ms
71,208 KB
testcase_09 AC 71 ms
71,360 KB
testcase_10 AC 75 ms
71,192 KB
testcase_11 AC 78 ms
75,812 KB
testcase_12 AC 78 ms
76,064 KB
testcase_13 AC 80 ms
76,324 KB
testcase_14 AC 77 ms
76,496 KB
testcase_15 AC 76 ms
76,180 KB
testcase_16 AC 80 ms
76,472 KB
testcase_17 AC 78 ms
76,272 KB
testcase_18 AC 77 ms
76,596 KB
testcase_19 AC 77 ms
76,312 KB
testcase_20 AC 82 ms
76,504 KB
testcase_21 AC 81 ms
76,104 KB
testcase_22 AC 83 ms
76,532 KB
testcase_23 AC 85 ms
76,652 KB
testcase_24 AC 80 ms
76,104 KB
testcase_25 AC 80 ms
76,640 KB
testcase_26 AC 82 ms
76,684 KB
testcase_27 AC 80 ms
76,344 KB
testcase_28 AC 81 ms
76,460 KB
testcase_29 AC 85 ms
76,720 KB
testcase_30 AC 82 ms
76,492 KB
testcase_31 AC 81 ms
76,504 KB
testcase_32 AC 77 ms
76,620 KB
testcase_33 AC 80 ms
76,464 KB
testcase_34 AC 83 ms
76,644 KB
testcase_35 AC 1,952 ms
220,048 KB
testcase_36 AC 972 ms
139,412 KB
testcase_37 AC 1,037 ms
150,652 KB
testcase_38 AC 1,020 ms
149,684 KB
testcase_39 AC 877 ms
138,448 KB
testcase_40 AC 1,160 ms
160,164 KB
testcase_41 AC 1,756 ms
207,632 KB
testcase_42 AC 981 ms
146,712 KB
testcase_43 AC 729 ms
127,116 KB
testcase_44 AC 1,391 ms
179,640 KB
testcase_45 AC 1,481 ms
187,520 KB
testcase_46 AC 1,840 ms
213,456 KB
testcase_47 AC 382 ms
99,984 KB
testcase_48 AC 1,824 ms
213,468 KB
testcase_49 AC 1,519 ms
190,760 KB
testcase_50 AC 285 ms
92,624 KB
testcase_51 AC 777 ms
129,624 KB
testcase_52 TLE -
testcase_53 TLE -
testcase_54 AC 1,996 ms
225,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
mod=10**9+7
dp=[[0 for i in range(10)]for j in range(N)]
for i in range(10):
    dp[0][i]=1
    
for i in range(1,N):
    for j in range(10):
        for k in range(10):
            if j>=k:
                dp[i][j]+=dp[i-1][k]
                dp[i][j]%=mod
ans=0
for i in range(10):
    ans+=dp[-1][i]
print(ans%mod)
#print(dp)
0