結果

問題 No.109 N! mod M
ユーザー mmmpppmmmppp
提出日時 2017-02-28 18:49:18
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 91 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 75,964 KB
最終ジャッジ日時 2023-09-02 17:57:27
合計ジャッジ時間 9,490 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,484 KB
testcase_01 AC 1,620 ms
75,964 KB
testcase_02 AC 914 ms
50,688 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -na
f=->n,m{n<2?1%m:(t=1;(2..n).map{|i|t=(i%m*t)%m};t)}
$F[1]&&p(f[*$F.map(&:to_i)])
0