結果
問題 | No.41 貯金箱の溜息(EASY) |
ユーザー |
![]() |
提出日時 | 2024-02-27 09:21:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 2,937 ms / 5,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 82,196 KB |
実行使用メモリ | 79,872 KB |
最終ジャッジ日時 | 2024-09-29 11:58:07 |
合計ジャッジ時間 | 3,909 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 |
ソースコード
T=int(input())mod=10**9+9N=10**6dp=[0]*Ndp[0]=1for c in range(1,10):for i in range(c,N):dp[i]+=dp[i-c]dp[i]%=modfor t in range(T):M=int(input())ans=0for x in range(M//111111+1):ans+=dp[x]ans%=modprint(ans)