結果

問題 No.673 カブトムシ
ユーザー daleksprinterdaleksprinter
提出日時 2018-09-02 00:20:59
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 159 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 6,492 KB
実行使用メモリ 6,108 KB
最終ジャッジ日時 2023-09-13 19:39:47
合計ジャッジ時間 1,738 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 12 ms
5,876 KB
testcase_03 AC 11 ms
5,996 KB
testcase_04 AC 12 ms
5,872 KB
testcase_05 AC 11 ms
5,872 KB
testcase_06 AC 11 ms
6,104 KB
testcase_07 AC 11 ms
6,048 KB
testcase_08 AC 11 ms
5,960 KB
testcase_09 AC 11 ms
5,956 KB
testcase_10 AC 11 ms
5,872 KB
testcase_11 AC 11 ms
6,056 KB
testcase_12 AC 11 ms
5,876 KB
testcase_13 AC 11 ms
5,988 KB
testcase_14 AC 11 ms
5,876 KB
testcase_15 AC 11 ms
6,036 KB
testcase_16 AC 11 ms
5,960 KB
testcase_17 AC 11 ms
5,872 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 % mod * d % mod
0