結果

問題 No.673 カブトムシ
ユーザー daleksprinterdaleksprinter
提出日時 2018-09-02 00:20:22
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 7,108 KB
実行使用メモリ 6,444 KB
最終ジャッジ日時 2023-10-21 20:41:10
合計ジャッジ時間 1,687 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 10 ms
6,444 KB
testcase_03 AC 11 ms
6,444 KB
testcase_04 AC 10 ms
6,444 KB
testcase_05 AC 11 ms
6,444 KB
testcase_06 AC 11 ms
6,444 KB
testcase_07 AC 11 ms
6,444 KB
testcase_08 AC 10 ms
6,444 KB
testcase_09 WA -
testcase_10 AC 11 ms
6,444 KB
testcase_11 AC 10 ms
6,444 KB
testcase_12 AC 11 ms
6,444 KB
testcase_13 AC 11 ms
6,444 KB
testcase_14 AC 11 ms
6,444 KB
testcase_15 AC 11 ms
6,444 KB
testcase_16 AC 11 ms
6,444 KB
testcase_17 AC 11 ms
6,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

b,c,d = map(int,raw_input().split())

mod = 10**9 + 7
print ((b%mod) * (c % mod) * (1- pow(c,d,mod)) * pow(1-c,mod-2,mod) )%mod if c > 1 else b * d
0