Function rustlib::inter::powm

source ·
pub fn powm(n: usize, x: usize, m: usize) -> Modint
Expand description

繰り返し二乗法を用いてn^x mod mO(logx)で計算します