結果

問題 No.251 大きな桁の復習問題(1)
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-07-30 14:24:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 81,980 KB
実行使用メモリ 67,972 KB
最終ジャッジ日時 2024-04-17 15:33:36
合計ジャッジ時間 2,783 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
55,552 KB
testcase_01 WA -
testcase_02 AC 53 ms
55,296 KB
testcase_03 AC 51 ms
55,680 KB
testcase_04 AC 50 ms
55,424 KB
testcase_05 AC 51 ms
55,424 KB
testcase_06 AC 55 ms
55,168 KB
testcase_07 AC 51 ms
55,040 KB
testcase_08 AC 51 ms
55,168 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 50 ms
55,424 KB
testcase_21 AC 49 ms
55,168 KB
testcase_22 AC 49 ms
55,168 KB
testcase_23 AC 50 ms
55,424 KB
権限があれば一括ダウンロードができます

ソースコード

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