結果

問題 No.251 大きな桁の復習問題(1)
ユーザー shotoyooshotoyoo
提出日時 2021-06-14 23:13:44
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 343 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 79,276 KB
最終ジャッジ日時 2023-08-26 09:35:37
合計ジャッジ時間 4,401 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,276 KB
testcase_01 AC 71 ms
71,076 KB
testcase_02 AC 71 ms
71,168 KB
testcase_03 AC 73 ms
71,280 KB
testcase_04 AC 72 ms
71,184 KB
testcase_05 AC 71 ms
70,836 KB
testcase_06 AC 71 ms
71,148 KB
testcase_07 AC 70 ms
71,228 KB
testcase_08 AC 70 ms
71,128 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 70 ms
71,228 KB
testcase_21 AC 73 ms
70,788 KB
testcase_22 AC 74 ms
71,184 KB
testcase_23 AC 72 ms
71,144 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%p==0) and m>0:
    val = 0
print(val)
0