結果

問題 No.251 大きな桁の復習問題(1)
ユーザー shotoyooshotoyoo
提出日時 2021-06-14 23:07:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 331 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 80,808 KB
最終ジャッジ日時 2023-08-26 09:25:51
合計ジャッジ時間 4,276 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,352 KB
testcase_01 AC 74 ms
71,372 KB
testcase_02 AC 73 ms
71,264 KB
testcase_03 AC 77 ms
71,200 KB
testcase_04 WA -
testcase_05 AC 72 ms
71,092 KB
testcase_06 AC 72 ms
71,264 KB
testcase_07 AC 71 ms
71,300 KB
testcase_08 AC 70 ms
71,320 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 72 ms
71,268 KB
testcase_21 AC 71 ms
71,332 KB
testcase_22 AC 71 ms
71,328 KB
testcase_23 AC 72 ms
71,200 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)
if n==0:
    val = 0
print(val)
0