結果

問題 No.251 大きな桁の復習問題(1)
ユーザー Navier_Boltzmann
提出日時 2023-07-30 14:24:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 68,200 KB
最終ジャッジ日時 2024-10-09 09:34:59
合計ジャッジ時間 2,542 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 1 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())
M = int(input())
mod = 129402307
if N%mod==0:
    print(0)
    exit()
M = M%(mod-1)
print(pow(N,M,mod))
0