Rosetta Problems
← 問題一覧に戻る
テトレーション
A
,
B
,
M
A, B, M
A
,
B
,
M
が与えられ、
B
A
m
o
d
M
{}^{B}A \bmod M
B
A
mod
M
を求める。
関連リンク
yosupo/tetration_mod