結果

問題 No.251 大きな桁の復習問題(1)
ユーザー ああいいああいい
提出日時 2022-01-28 15:17:24
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 167 bytes
コンパイル時間 1,132 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 79,024 KB
最終ジャッジ日時 2023-08-28 12:38:46
合計ジャッジ時間 4,573 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,048 KB
testcase_01 AC 77 ms
71,200 KB
testcase_02 AC 77 ms
71,132 KB
testcase_03 AC 75 ms
70,980 KB
testcase_04 AC 76 ms
71,136 KB
testcase_05 AC 75 ms
71,136 KB
testcase_06 AC 76 ms
70,804 KB
testcase_07 AC 75 ms
71,096 KB
testcase_08 AC 76 ms
71,052 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 76 ms
71,320 KB
testcase_21 AC 76 ms
71,236 KB
testcase_22 AC 76 ms
71,268 KB
testcase_23 AC 76 ms
71,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import sys


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