結果

問題 No.129 お年玉(2)
ユーザー cielciel
提出日時 2015-01-16 23:29:01
言語 Ruby
(3.3.0)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 77 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 11,312 KB
実行使用メモリ 20,936 KB
最終ジャッジ日時 2023-08-18 16:22:06
合計ジャッジ時間 6,388 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,264 KB
testcase_01 AC 124 ms
20,784 KB
testcase_02 AC 78 ms
15,232 KB
testcase_03 AC 81 ms
15,084 KB
testcase_04 AC 77 ms
15,044 KB
testcase_05 AC 97 ms
18,772 KB
testcase_06 AC 90 ms
18,208 KB
testcase_07 AC 105 ms
20,020 KB
testcase_08 AC 103 ms
19,288 KB
testcase_09 AC 88 ms
18,168 KB
testcase_10 AC 108 ms
20,100 KB
testcase_11 AC 95 ms
18,452 KB
testcase_12 AC 79 ms
15,300 KB
testcase_13 AC 79 ms
15,044 KB
testcase_14 AC 92 ms
18,388 KB
testcase_15 AC 91 ms
17,948 KB
testcase_16 AC 95 ms
18,464 KB
testcase_17 AC 87 ms
17,820 KB
testcase_18 AC 105 ms
20,044 KB
testcase_19 AC 113 ms
20,032 KB
testcase_20 AC 100 ms
19,964 KB
testcase_21 AC 89 ms
18,052 KB
testcase_22 AC 96 ms
19,036 KB
testcase_23 AC 107 ms
20,244 KB
testcase_24 AC 115 ms
20,216 KB
testcase_25 AC 93 ms
18,680 KB
testcase_26 AC 100 ms
19,180 KB
testcase_27 AC 98 ms
19,240 KB
testcase_28 AC 97 ms
19,648 KB
testcase_29 AC 77 ms
15,244 KB
testcase_30 AC 76 ms
15,152 KB
testcase_31 AC 77 ms
15,152 KB
testcase_32 AC 76 ms
15,256 KB
testcase_33 AC 76 ms
15,180 KB
testcase_34 AC 76 ms
15,040 KB
testcase_35 AC 77 ms
15,036 KB
testcase_36 AC 79 ms
15,240 KB
testcase_37 AC 77 ms
15,248 KB
testcase_38 AC 79 ms
15,572 KB
testcase_39 AC 80 ms
15,696 KB
testcase_40 AC 84 ms
16,872 KB
testcase_41 AC 88 ms
17,628 KB
testcase_42 AC 82 ms
16,344 KB
testcase_43 AC 78 ms
15,232 KB
testcase_44 AC 120 ms
20,936 KB
testcase_45 AC 80 ms
15,668 KB
testcase_46 AC 79 ms
15,308 KB
testcase_47 AC 123 ms
20,636 KB
testcase_48 AC 104 ms
19,396 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

k=gets.to_i/1000%(n=gets.to_i)
r=1
1.step(k){|i|r=r*(n-i+1)/i}
p r%1000000000
0