結果

問題 No.129 お年玉(2)
ユーザー cielciel
提出日時 2015-01-17 02:01:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 70 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 11,280 KB
実行使用メモリ 20,976 KB
最終ジャッジ日時 2023-08-18 16:29:31
合計ジャッジ時間 6,562 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
15,272 KB
testcase_01 AC 122 ms
20,976 KB
testcase_02 AC 74 ms
15,036 KB
testcase_03 AC 73 ms
15,088 KB
testcase_04 AC 76 ms
15,080 KB
testcase_05 AC 93 ms
18,508 KB
testcase_06 AC 88 ms
18,236 KB
testcase_07 AC 96 ms
19,976 KB
testcase_08 AC 98 ms
19,428 KB
testcase_09 AC 86 ms
18,124 KB
testcase_10 AC 105 ms
20,196 KB
testcase_11 AC 90 ms
18,564 KB
testcase_12 AC 78 ms
15,260 KB
testcase_13 AC 76 ms
15,028 KB
testcase_14 AC 88 ms
18,456 KB
testcase_15 AC 91 ms
17,980 KB
testcase_16 AC 96 ms
18,612 KB
testcase_17 AC 85 ms
17,700 KB
testcase_18 AC 106 ms
20,028 KB
testcase_19 AC 115 ms
19,896 KB
testcase_20 AC 102 ms
19,828 KB
testcase_21 AC 91 ms
17,812 KB
testcase_22 AC 98 ms
19,184 KB
testcase_23 AC 110 ms
20,316 KB
testcase_24 AC 117 ms
20,372 KB
testcase_25 AC 94 ms
18,348 KB
testcase_26 AC 103 ms
19,328 KB
testcase_27 AC 100 ms
19,400 KB
testcase_28 AC 101 ms
19,848 KB
testcase_29 AC 80 ms
15,304 KB
testcase_30 AC 80 ms
15,220 KB
testcase_31 AC 77 ms
15,244 KB
testcase_32 AC 75 ms
15,236 KB
testcase_33 AC 78 ms
15,316 KB
testcase_34 AC 77 ms
15,216 KB
testcase_35 AC 79 ms
15,148 KB
testcase_36 AC 80 ms
15,020 KB
testcase_37 AC 79 ms
15,224 KB
testcase_38 AC 80 ms
15,840 KB
testcase_39 AC 80 ms
15,640 KB
testcase_40 AC 86 ms
16,716 KB
testcase_41 AC 91 ms
17,620 KB
testcase_42 AC 87 ms
16,576 KB
testcase_43 AC 81 ms
15,136 KB
testcase_44 AC 119 ms
20,884 KB
testcase_45 AC 82 ms
15,688 KB
testcase_46 AC 80 ms
15,268 KB
testcase_47 AC 118 ms
20,532 KB
testcase_48 AC 106 ms
19,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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