結果
問題 | No.41 貯金箱の溜息(EASY) |
ユーザー |
![]() |
提出日時 | 2017-07-28 11:29:10 |
言語 | Nim (1.6.4) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 2,620 ms |
使用メモリ | 3,844 KB |
最終ジャッジ日時 | 2023-01-30 12:51:57 |
合計ジャッジ時間 | 3,488 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
3,844 KB |
testcase_01 | AC | 30 ms
3,836 KB |
コンパイルメッセージ
/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]