結果
| 問題 |
No.403 2^2^2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-18 00:57:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 431 ms |
| コンパイル使用メモリ | 82,516 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-06-18 00:57:58 |
| 合計ジャッジ時間 | 3,616 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 18 |
ソースコード
def main():
a, b, c = list(map(int, input().split("^")))
mod = 10 ** 9 + 7
res1 = pow(a, b * c, mod)
exponent = pow(b, c, mod - 2)
res2 = pow(a, exponent, mod)
print(res1, res2)
main()