結果

問題 No.251 大きな桁の復習問題(1)
ユーザー shotoyooshotoyoo
提出日時 2021-06-14 23:05:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 86,764 KB
実行使用メモリ 79,188 KB
最終ジャッジ日時 2023-08-26 09:24:49
合計ジャッジ時間 5,016 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
70,984 KB
testcase_01 AC 65 ms
71,140 KB
testcase_02 AC 63 ms
71,292 KB
testcase_03 AC 64 ms
71,200 KB
testcase_04 WA -
testcase_05 AC 63 ms
71,084 KB
testcase_06 WA -
testcase_07 AC 67 ms
71,252 KB
testcase_08 AC 66 ms
71,056 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 63 ms
71,392 KB
testcase_21 AC 61 ms
71,164 KB
testcase_22 AC 62 ms
71,192 KB
testcase_23 AC 64 ms
71,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()

sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")
debug = lambda x: sys.stderr.write(x+"\n")
writef = lambda x: print("{:.12f}".format(x))


n = int(input())
m = int(input())
p = 129402307
val = pow(n, m%(p-1), p)
print(val)
0