結果

問題 No.251 大きな桁の復習問題(1)
ユーザー satama123satama123
提出日時 2023-08-28 16:24:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 77,252 KB
最終ジャッジ日時 2023-08-28 16:24:21
合計ジャッジ時間 3,143 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,200 KB
testcase_01 AC 69 ms
71,452 KB
testcase_02 AC 68 ms
71,384 KB
testcase_03 AC 69 ms
71,348 KB
testcase_04 WA -
testcase_05 AC 70 ms
71,412 KB
testcase_06 WA -
testcase_07 AC 69 ms
71,468 KB
testcase_08 AC 67 ms
71,472 KB
testcase_09 AC 76 ms
76,240 KB
testcase_10 AC 86 ms
77,248 KB
testcase_11 AC 79 ms
76,908 KB
testcase_12 AC 80 ms
76,860 KB
testcase_13 AC 80 ms
77,236 KB
testcase_14 AC 81 ms
76,880 KB
testcase_15 AC 80 ms
76,912 KB
testcase_16 AC 79 ms
77,252 KB
testcase_17 AC 80 ms
77,152 KB
testcase_18 AC 81 ms
77,008 KB
testcase_19 AC 80 ms
77,096 KB
testcase_20 AC 69 ms
71,136 KB
testcase_21 AC 68 ms
71,288 KB
testcase_22 AC 75 ms
71,552 KB
testcase_23 AC 69 ms
71,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
M = input()
mod = 129402307

n = 0
for i in N:
    n *= 10
    n += int(i)
    n %= mod

m = 0
for i in M:
    m *= 10
    m += int(i)
    m %= (mod-1)


print(pow(n, m, mod))
0