結果

問題 No.251 大きな桁の復習問題(1)
ユーザー lloyzlloyz
提出日時 2023-05-03 07:23:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 87,212 KB
最終ジャッジ日時 2024-05-01 11:03:16
合計ジャッジ時間 3,091 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,000 KB
testcase_01 AC 35 ms
52,132 KB
testcase_02 AC 34 ms
52,852 KB
testcase_03 AC 36 ms
52,068 KB
testcase_04 WA -
testcase_05 AC 32 ms
52,416 KB
testcase_06 WA -
testcase_07 AC 32 ms
52,356 KB
testcase_08 AC 31 ms
53,228 KB
testcase_09 AC 125 ms
85,732 KB
testcase_10 AC 133 ms
85,772 KB
testcase_11 AC 130 ms
86,368 KB
testcase_12 AC 137 ms
85,436 KB
testcase_13 AC 128 ms
85,988 KB
testcase_14 AC 129 ms
85,392 KB
testcase_15 AC 139 ms
87,188 KB
testcase_16 AC 137 ms
86,976 KB
testcase_17 AC 132 ms
85,692 KB
testcase_18 AC 131 ms
87,212 KB
testcase_19 AC 129 ms
85,792 KB
testcase_20 AC 34 ms
52,440 KB
testcase_21 AC 33 ms
52,728 KB
testcase_22 AC 34 ms
52,116 KB
testcase_23 AC 32 ms
53,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = list(map(int, list(input())))
M = list(map(int, list(input())))
mod = 129402307

n = 0
d = len(N)
for i in range(d):
    n += N[i] * pow(10, d - i - 1, mod) % mod
    n %= mod
m = 0
dd = len(M)
for i in range(dd):
    m += M[i] * pow(10, dd - i - 1, mod - 1) % (mod - 1)
    m %= mod - 1
print(pow(n, m, mod))
0