結果

問題 No.251 大きな桁の復習問題(1)
ユーザー SalmonizeSalmonize
提出日時 2019-04-03 23:39:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 200 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,432 KB
最終ジャッジ日時 2023-08-25 01:35:23
合計ジャッジ時間 1,924 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 16 ms
8,160 KB
testcase_03 AC 16 ms
8,032 KB
testcase_04 AC 15 ms
8,252 KB
testcase_05 AC 16 ms
7,804 KB
testcase_06 AC 15 ms
7,804 KB
testcase_07 AC 15 ms
7,844 KB
testcase_08 AC 15 ms
7,808 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 16 ms
8,144 KB
testcase_21 AC 15 ms
7,860 KB
testcase_22 AC 16 ms
7,844 KB
testcase_23 AC 16 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
m = int(input())
mod = 129402307
def pow2(x,y):
    if y == 1:
        return x%mod
    elif y%2 == 0:
        return pow2(x,y//2)**2%mod
    return pow2(x,y-1)*x%mod
print(pow2(n,m))
0