結果
問題 | No.741 AscNumber(Easy) |
ユーザー | soisu |
提出日時 | 2022-03-20 14:59:34 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 600 ms |
コンパイル使用メモリ | 82,576 KB |
実行使用メモリ | 613,340 KB |
最終ジャッジ日時 | 2024-04-16 07:47:34 |
合計ジャッジ時間 | 6,654 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
59,180 KB |
testcase_01 | AC | 39 ms
52,684 KB |
testcase_02 | AC | 42 ms
52,752 KB |
testcase_03 | AC | 40 ms
53,620 KB |
testcase_04 | AC | 40 ms
52,664 KB |
testcase_05 | AC | 39 ms
53,532 KB |
testcase_06 | AC | 40 ms
53,836 KB |
testcase_07 | AC | 40 ms
52,276 KB |
testcase_08 | AC | 40 ms
52,932 KB |
testcase_09 | AC | 39 ms
52,684 KB |
testcase_10 | AC | 39 ms
53,520 KB |
testcase_11 | AC | 43 ms
58,328 KB |
testcase_12 | AC | 43 ms
58,564 KB |
testcase_13 | AC | 44 ms
58,312 KB |
testcase_14 | AC | 42 ms
59,456 KB |
testcase_15 | AC | 42 ms
59,192 KB |
testcase_16 | AC | 43 ms
58,940 KB |
testcase_17 | AC | 43 ms
59,428 KB |
testcase_18 | AC | 44 ms
58,912 KB |
testcase_19 | AC | 44 ms
59,156 KB |
testcase_20 | AC | 54 ms
63,692 KB |
testcase_21 | AC | 50 ms
62,208 KB |
testcase_22 | AC | 55 ms
65,640 KB |
testcase_23 | AC | 55 ms
64,904 KB |
testcase_24 | AC | 49 ms
61,872 KB |
testcase_25 | AC | 52 ms
62,548 KB |
testcase_26 | AC | 54 ms
64,156 KB |
testcase_27 | AC | 51 ms
62,552 KB |
testcase_28 | AC | 51 ms
62,892 KB |
testcase_29 | AC | 51 ms
63,084 KB |
testcase_30 | AC | 56 ms
65,428 KB |
testcase_31 | AC | 54 ms
64,756 KB |
testcase_32 | AC | 47 ms
60,064 KB |
testcase_33 | AC | 54 ms
64,672 KB |
testcase_34 | AC | 60 ms
67,476 KB |
testcase_35 | MLE | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
testcase_47 | -- | - |
testcase_48 | -- | - |
testcase_49 | -- | - |
testcase_50 | -- | - |
testcase_51 | -- | - |
testcase_52 | -- | - |
testcase_53 | -- | - |
testcase_54 | -- | - |
ソースコード
N=int(input()) dp=[[0 for j in range(10)] for i in range(N+1)] dp[0][0]=1 mod=10**9+7 for i in range(N): for j in range(10): for d in range(1,10): if j<=d: dp[i+1][d]+=dp[i][j] ans=1 for i in range(1,N+1): ans+=sum(dp[i]) ans%=mod print(ans)