結果

問題 No.251 大きな桁の復習問題(1)
ユーザー ShirotsumeShirotsume
提出日時 2021-12-09 23:29:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 117 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 86,748 KB
実行使用メモリ 79,032 KB
最終ジャッジ日時 2023-09-24 15:43:32
合計ジャッジ時間 4,049 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,972 KB
testcase_01 WA -
testcase_02 AC 71 ms
71,216 KB
testcase_03 AC 72 ms
70,844 KB
testcase_04 AC 73 ms
71,384 KB
testcase_05 AC 71 ms
71,100 KB
testcase_06 AC 72 ms
71,396 KB
testcase_07 AC 71 ms
70,980 KB
testcase_08 AC 72 ms
71,124 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 71 ms
71,160 KB
testcase_21 AC 70 ms
71,052 KB
testcase_22 AC 70 ms
71,388 KB
testcase_23 AC 71 ms
70,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 129402307
n = int(input()) % mod
m = int(input()) % (mod - 1) + mod - 1

print(pow(n, m, mod) if n != 0 else 0)
0