結果

問題 No.403 2^2^2
ユーザー koyoprokoyopro
提出日時 2020-02-26 23:28:01
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 1,728 ms
コンパイル使用メモリ 76,160 KB
実行使用メモリ 75,592 KB
最終ジャッジ日時 2024-04-21 16:39:18
合計ジャッジ時間 4,953 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
75,392 KB
testcase_01 AC 76 ms
75,264 KB
testcase_02 AC 76 ms
75,520 KB
testcase_03 AC 77 ms
75,520 KB
testcase_04 AC 75 ms
75,392 KB
testcase_05 AC 74 ms
75,264 KB
testcase_06 AC 77 ms
75,264 KB
testcase_07 AC 77 ms
75,136 KB
testcase_08 AC 80 ms
75,520 KB
testcase_09 AC 78 ms
75,392 KB
testcase_10 AC 78 ms
75,520 KB
testcase_11 AC 75 ms
75,520 KB
testcase_12 AC 77 ms
75,520 KB
testcase_13 AC 79 ms
75,264 KB
testcase_14 AC 76 ms
75,136 KB
testcase_15 AC 79 ms
75,360 KB
testcase_16 AC 80 ms
75,344 KB
testcase_17 AC 82 ms
75,136 KB
testcase_18 AC 77 ms
75,008 KB
testcase_19 AC 75 ms
75,392 KB
testcase_20 AC 77 ms
75,592 KB
testcase_21 AC 77 ms
75,236 KB
testcase_22 AC 76 ms
75,136 KB
testcase_23 AC 76 ms
75,136 KB
testcase_24 AC 79 ms
75,264 KB
testcase_25 AC 78 ms
75,392 KB
testcase_26 AC 78 ms
75,136 KB
testcase_27 AC 78 ms
75,136 KB
testcase_28 AC 79 ms
75,264 KB
testcase_29 AC 78 ms
75,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = [int(x) for x in raw_input().split('^')]
MOD=1000000007
p=pow(b,c,MOD-1) or MOD-1
print("{} {}".format(pow(pow(a, b, MOD), c, MOD),pow(a, p, MOD)))
0