結果

問題 No.129 お年玉(2)
ユーザー ldsyb
提出日時 2017-07-17 21:13:33
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 27,136 KB
最終ジャッジ日時 2024-10-08 07:08:30
合計ジャッジ時間 10,333 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

(define fact
	(lambda (x)
		(if (<= x 0) 1
			(* x (fact (- x 1))))))

(define n (read))
(define m (read))
(set! n (div (mod n (* m 1000)) 1000))
(print (if (= n 0) 1 (div (div (fact m) (fact n)) (fact (- m n)))))
0