結果
問題 |
No.673 カブトムシ
|
ユーザー |
|
提出日時 | 2022-05-19 09:12:26 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 81,980 KB |
実行使用メモリ | 843,896 KB |
最終ジャッジ日時 | 2024-09-17 14:38:09 |
合計ジャッジ時間 | 3,574 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 3 |
other | AC * 2 RE * 9 MLE * 1 -- * 2 |
ソースコード
b,c,d = map(int,input().split()) import sys P = 10 ** 9 + 7 if c == 1: print(b * d % P) else: t = pow(c,d,P) - 1 inv = (c - 1,P-2,P) ans = t * inv * b * c % P print(ans)