結果

問題 No.673 カブトムシ
ユーザー %20%20
提出日時 2018-04-22 20:37:56
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 80 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,500 KB
実行使用メモリ 15,288 KB
最終ジャッジ日時 2023-09-12 18:29:31
合計ジャッジ時間 2,750 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 84 ms
15,140 KB
testcase_03 AC 80 ms
15,056 KB
testcase_04 AC 82 ms
15,228 KB
testcase_05 AC 81 ms
15,052 KB
testcase_06 AC 81 ms
15,176 KB
testcase_07 AC 81 ms
15,112 KB
testcase_08 AC 82 ms
15,248 KB
testcase_09 AC 80 ms
15,288 KB
testcase_10 AC 81 ms
15,060 KB
testcase_11 AC 81 ms
15,240 KB
testcase_12 AC 79 ms
15,092 KB
testcase_13 AC 80 ms
15,084 KB
testcase_14 AC 79 ms
15,080 KB
testcase_15 AC 80 ms
15,172 KB
testcase_16 AC 80 ms
15,264 KB
testcase_17 AC 80 ms
15,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

M=10**9+7
eval'B,C,D='+`tr ' ' ,`
p B*(C<2?D: C*~-C.pow(D,M)*(C-1).pow(M-2,M))%M
0