結果

問題 No.251 大きな桁の復習問題(1)
ユーザー ああいいああいい
提出日時 2022-01-28 15:14:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 79,164 KB
最終ジャッジ日時 2023-08-28 12:35:57
合計ジャッジ時間 4,671 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,372 KB
testcase_01 WA -
testcase_02 AC 74 ms
71,300 KB
testcase_03 AC 73 ms
71,552 KB
testcase_04 AC 72 ms
71,268 KB
testcase_05 AC 76 ms
71,308 KB
testcase_06 AC 74 ms
71,372 KB
testcase_07 AC 74 ms
71,372 KB
testcase_08 AC 72 ms
71,268 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 74 ms
71,164 KB
testcase_21 AC 75 ms
71,472 KB
testcase_22 AC 74 ms
71,100 KB
testcase_23 AC 72 ms
71,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
M = int(input())
P = 129402307

import sys

N %= P
M %= (P-1)
if N == 0:
    print(0)
    exit()
print(pow(N,M,P))
0