結果

問題 No.673 カブトムシ
ユーザー pluto77pluto77
提出日時 2018-04-15 08:58:01
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 150 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 6,024 KB
最終ジャッジ日時 2023-09-12 18:17:14
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#yuki673

b,c,d=map(int,raw_input().split())
mod=1000000007
res=(pow(c,d,mod)+mod-1)*pow(c-1,mod-2,mod)*b%mod*c%mod
if c==1:
 res=(b*d)%mod
print res
0