結果

問題 No.403 2^2^2
ユーザー 👑 jupirojupiro
提出日時 2020-04-15 20:17:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 53,844 KB
最終ジャッジ日時 2024-04-09 18:58:32
合計ジャッジ時間 1,963 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,480 KB
testcase_01 AC 32 ms
52,160 KB
testcase_02 AC 32 ms
52,200 KB
testcase_03 AC 34 ms
53,272 KB
testcase_04 AC 34 ms
52,288 KB
testcase_05 AC 31 ms
51,752 KB
testcase_06 AC 33 ms
53,412 KB
testcase_07 AC 32 ms
52,732 KB
testcase_08 AC 33 ms
51,832 KB
testcase_09 AC 31 ms
53,392 KB
testcase_10 AC 30 ms
52,708 KB
testcase_11 AC 31 ms
51,816 KB
testcase_12 AC 32 ms
52,544 KB
testcase_13 AC 32 ms
53,100 KB
testcase_14 AC 35 ms
52,264 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 31 ms
52,084 KB
testcase_18 AC 31 ms
52,244 KB
testcase_19 AC 32 ms
51,960 KB
testcase_20 AC 30 ms
52,240 KB
testcase_21 AC 31 ms
53,084 KB
testcase_22 AC 34 ms
52,736 KB
testcase_23 AC 32 ms
52,952 KB
testcase_24 AC 32 ms
52,728 KB
testcase_25 WA -
testcase_26 AC 32 ms
52,248 KB
testcase_27 AC 31 ms
52,088 KB
testcase_28 AC 32 ms
52,148 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split('^'))

mod = 1000000007

res1 = pow(pow(a,b,mod),c,mod)

cnt = pow(b,c, mod - 1)

res2 = pow(a,cnt,mod)

print(str(res1) + " "+str(res2))
0