結果
問題 | No.129 お年玉(2) |
ユーザー |
![]() |
提出日時 | 2017-09-04 19:49:36 |
言語 | Nim (2.2.0) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 4,522 ms |
コンパイル使用メモリ | 65,548 KB |
実行使用メモリ | 776,824 KB |
最終ジャッジ日時 | 2024-09-30 23:22:29 |
合計ジャッジ時間 | 16,665 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 MLE * 27 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils,strutilsvarN = stdin.readline.parseBiggestIntM = stdin.readline.parseBiggestIntc = (N div 1000) mod Mmemo : array[10001, array[10001, int64]]for i in 0..M:for j in 0..i:if j == 0:memo[i][j] = 1else:memo[i][j] = (memo[i - 1][j] + memo[i - 1][j - 1]) mod 1_000_000_000#echo memo[i][0..i.int]echo memo[M][c]