結果
| 問題 |
No.41 貯金箱の溜息(EASY)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-21 23:47:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 82,592 KB |
| 実行使用メモリ | 177,600 KB |
| 最終ジャッジ日時 | 2025-01-21 23:47:21 |
| 合計ジャッジ時間 | 7,285 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 |
ソースコード
MOD = 10 ** 9 + 9
for _ in range(int(input())):
m = int(input())
x = m // 111111
dp = [0] * (x + 1)
dp[0] = 1
for i in range(1,10):
for j in range(x):
if i + j <= x:
dp[i+j] += dp[j]
dp[i+j] %= MOD
print(sum(dp)%MOD)
ntuda