結果

問題 No.403 2^2^2
ユーザー rlangevinrlangevin
提出日時 2023-07-27 12:31:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 54,248 KB
最終ジャッジ日時 2024-04-15 00:40:49
合計ジャッジ時間 2,457 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,152 KB
testcase_01 AC 38 ms
52,416 KB
testcase_02 AC 39 ms
52,000 KB
testcase_03 AC 39 ms
52,028 KB
testcase_04 AC 38 ms
52,884 KB
testcase_05 AC 39 ms
53,356 KB
testcase_06 AC 39 ms
52,440 KB
testcase_07 AC 39 ms
52,944 KB
testcase_08 AC 38 ms
52,404 KB
testcase_09 AC 39 ms
52,488 KB
testcase_10 AC 39 ms
52,548 KB
testcase_11 AC 39 ms
52,336 KB
testcase_12 AC 37 ms
51,956 KB
testcase_13 AC 39 ms
53,152 KB
testcase_14 AC 39 ms
52,304 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 38 ms
52,268 KB
testcase_18 AC 39 ms
52,684 KB
testcase_19 AC 39 ms
52,432 KB
testcase_20 AC 39 ms
52,332 KB
testcase_21 AC 40 ms
52,316 KB
testcase_22 AC 38 ms
52,776 KB
testcase_23 AC 39 ms
52,064 KB
testcase_24 AC 39 ms
52,628 KB
testcase_25 WA -
testcase_26 AC 38 ms
52,060 KB
testcase_27 AC 39 ms
53,056 KB
testcase_28 AC 38 ms
51,964 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split("^"))
mod = 10 ** 9 + 7
ans1 = pow(A, B * C, mod)
ind = pow(B, C, mod - 1)
ans2 = pow(A, ind, mod)
print(ans1, ans2)
0