結果
| 問題 |
No.41 貯金箱の溜息(EASY)
|
| コンテスト | |
| ユーザー |
6soukiti29
|
| 提出日時 | 2017-07-28 11:29:10 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 371 bytes |
| コンパイル時間 | 2,878 ms |
| コンパイル使用メモリ | 66,308 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 01:52:11 |
| 合計ジャッジ時間 | 3,506 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 26) Warning: imported and not used: 'algorithm' [UnusedImport] /home/judge/data/code/Main.nim(1, 17) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils,sequtils,algorithm
var
T = stdin.readline.parseInt
M : int64
m : int
dp : array[100000,int]
mmod = 1_000_000_009
for i in 0..<100000:
dp[i] = 1
for i in 1..9:
for j in 0..90000:
dp[j + i] = (dp[j] + dp[j + i]) mod mmod
for t in 0..<T:
M = stdin.readline.parseBiggestInt
m = (M div 111_111).int
echo dp[m]
6soukiti29