結果
問題 | No.129 お年玉(2) |
ユーザー |
![]() |
提出日時 | 2015-03-01 14:08:17 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 196 ms / 5,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 50,432 KB |
最終ジャッジ日時 | 2024-11-27 23:41:47 |
合計ジャッジ時間 | 6,576 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 |
コンパイルメッセージ
Syntax OK
ソースコード
def combi(n,m)a = b = 1for i in 1..ma *= ib *= i+n-mendreturn b/aendn = gets.to_im = gets.to_iamari = (n - n/1000/m*1000*m)/1000p combi(m,amari)%1000000000