結果

問題 No.673 カブトムシ
ユーザー cielciel
提出日時 2018-04-18 01:43:40
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 75 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 15,388 KB
最終ジャッジ日時 2023-09-09 11:13:04
合計ジャッジ時間 3,333 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 81 ms
15,260 KB
testcase_03 WA -
testcase_04 AC 81 ms
15,276 KB
testcase_05 AC 83 ms
15,228 KB
testcase_06 WA -
testcase_07 AC 82 ms
15,084 KB
testcase_08 AC 81 ms
15,132 KB
testcase_09 WA -
testcase_10 AC 82 ms
15,388 KB
testcase_11 AC 81 ms
15,300 KB
testcase_12 AC 84 ms
15,068 KB
testcase_13 AC 83 ms
15,148 KB
testcase_14 AC 81 ms
15,140 KB
testcase_15 AC 80 ms
15,256 KB
testcase_16 AC 80 ms
15,140 KB
testcase_17 AC 81 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

M=10**9+7
b,c,d=gets.split.map &:to_i
p b*c*~-c.pow(d,M)*(c-1).pow(M-2,M)%M
0