From 3ffc013354245f49e7d2f033b72fa51b0ce1d971 Mon Sep 17 00:00:00 2001 From: Zhiyang Lu <103179313+alfaloo@users.noreply.github.com> Date: Tue, 10 Jun 2025 22:59:02 +0800 Subject: [PATCH] [typo] variable name should be r instead of res --- content/english/hpc/number-theory/exponentiation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/english/hpc/number-theory/exponentiation.md b/content/english/hpc/number-theory/exponentiation.md index 8806257d..2bb248d2 100644 --- a/content/english/hpc/number-theory/exponentiation.md +++ b/content/english/hpc/number-theory/exponentiation.md @@ -76,7 +76,7 @@ u64 binpow(u64 a, u64 n) { while (n) { if (n & 1) - r = res * a % M; + r = r * a % M; a = a * a % M; n >>= 1; }