結果

問題 No.129 お年玉(2)
ユーザー cielciel
提出日時 2015-01-16 23:31:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 115 ms / 5,000 ms
コード長 70 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 20,708 KB
最終ジャッジ日時 2023-08-18 16:24:06
合計ジャッジ時間 5,966 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,328 KB
testcase_01 AC 115 ms
20,704 KB
testcase_02 AC 71 ms
15,128 KB
testcase_03 AC 72 ms
15,336 KB
testcase_04 AC 71 ms
15,256 KB
testcase_05 AC 91 ms
18,628 KB
testcase_06 AC 87 ms
18,172 KB
testcase_07 AC 97 ms
20,148 KB
testcase_08 AC 101 ms
19,180 KB
testcase_09 AC 82 ms
18,192 KB
testcase_10 AC 101 ms
20,384 KB
testcase_11 AC 88 ms
18,456 KB
testcase_12 AC 74 ms
15,364 KB
testcase_13 AC 79 ms
15,168 KB
testcase_14 AC 87 ms
18,228 KB
testcase_15 AC 85 ms
18,016 KB
testcase_16 AC 90 ms
18,692 KB
testcase_17 AC 82 ms
17,580 KB
testcase_18 AC 100 ms
19,792 KB
testcase_19 AC 106 ms
19,900 KB
testcase_20 AC 96 ms
20,064 KB
testcase_21 AC 86 ms
17,880 KB
testcase_22 AC 94 ms
19,196 KB
testcase_23 AC 104 ms
20,252 KB
testcase_24 AC 111 ms
20,364 KB
testcase_25 AC 85 ms
18,604 KB
testcase_26 AC 95 ms
19,268 KB
testcase_27 AC 95 ms
19,356 KB
testcase_28 AC 93 ms
19,960 KB
testcase_29 AC 73 ms
15,300 KB
testcase_30 AC 72 ms
15,052 KB
testcase_31 AC 73 ms
15,052 KB
testcase_32 AC 73 ms
15,132 KB
testcase_33 AC 73 ms
15,272 KB
testcase_34 AC 75 ms
15,368 KB
testcase_35 AC 71 ms
15,248 KB
testcase_36 AC 71 ms
15,164 KB
testcase_37 AC 72 ms
15,084 KB
testcase_38 AC 74 ms
15,892 KB
testcase_39 AC 74 ms
15,692 KB
testcase_40 AC 79 ms
16,852 KB
testcase_41 AC 82 ms
17,620 KB
testcase_42 AC 76 ms
16,476 KB
testcase_43 AC 76 ms
15,120 KB
testcase_44 AC 112 ms
20,708 KB
testcase_45 AC 80 ms
15,600 KB
testcase_46 AC 73 ms
15,316 KB
testcase_47 AC 107 ms
20,568 KB
testcase_48 AC 102 ms
19,428 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%10**9
0