結果

問題 No.1964 sum = length
ユーザー hir355hir355
提出日時 2022-06-03 21:28:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,592 KB
実行使用メモリ 63,892 KB
最終ジャッジ日時 2023-10-21 01:37:43
合計ジャッジ時間 5,903 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
59,592 KB
testcase_01 AC 48 ms
59,592 KB
testcase_02 AC 58 ms
61,844 KB
testcase_03 AC 47 ms
59,592 KB
testcase_04 AC 47 ms
59,592 KB
testcase_05 AC 50 ms
61,844 KB
testcase_06 AC 50 ms
61,844 KB
testcase_07 AC 52 ms
61,844 KB
testcase_08 AC 52 ms
61,844 KB
testcase_09 AC 52 ms
61,844 KB
testcase_10 AC 53 ms
61,844 KB
testcase_11 AC 54 ms
61,844 KB
testcase_12 AC 74 ms
61,844 KB
testcase_13 AC 87 ms
61,844 KB
testcase_14 AC 100 ms
61,844 KB
testcase_15 AC 108 ms
61,844 KB
testcase_16 AC 58 ms
61,844 KB
testcase_17 AC 78 ms
61,844 KB
testcase_18 AC 81 ms
61,844 KB
testcase_19 AC 69 ms
61,844 KB
testcase_20 AC 72 ms
61,844 KB
testcase_21 AC 57 ms
61,844 KB
testcase_22 AC 163 ms
63,892 KB
testcase_23 AC 161 ms
63,892 KB
testcase_24 AC 130 ms
61,844 KB
testcase_25 AC 137 ms
63,892 KB
testcase_26 AC 167 ms
63,892 KB
testcase_27 AC 147 ms
63,892 KB
testcase_28 AC 135 ms
63,892 KB
testcase_29 AC 155 ms
63,892 KB
testcase_30 AC 139 ms
63,892 KB
testcase_31 AC 170 ms
63,892 KB
testcase_32 AC 114 ms
61,844 KB
testcase_33 AC 111 ms
61,844 KB
testcase_34 AC 163 ms
63,892 KB
testcase_35 AC 121 ms
61,844 KB
testcase_36 AC 142 ms
63,892 KB
testcase_37 AC 156 ms
63,892 KB
testcase_38 AC 171 ms
63,892 KB
testcase_39 AC 138 ms
63,892 KB
testcase_40 AC 139 ms
63,892 KB
testcase_41 AC 165 ms
63,892 KB
testcase_42 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
n = int(input())
dp = [[0] * 401 for _ in range(n + 1)]
dp[0][200] = 1
x = [0] * 200
for i in range(1, 201):
    x[i - 1] = i - len(str(i)) - 1
for i in range(n):
    for j in range(401):
        dp[i][j] %= MOD
    for j in range(401):
        for y in x:
            if 0 <= j + y <= 400:
                dp[i + 1][j + y] += dp[i][j]
print(dp[n][199] % MOD)
0