From 774d9e829bdb9259fbe9d7074c43a501c22ec4f3 Mon Sep 17 00:00:00 2001 From: subcrip Date: Fri, 6 Dec 2024 10:02:48 +0000 Subject: [PATCH] Update template.cc Signed-off-by: subcrip --- template.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.cc b/template.cc index e0ac325..b33e37f 100644 --- a/template.cc +++ b/template.cc @@ -289,9 +289,9 @@ ll qpow(ll b, ll p, ll mod) { } -// Accurately find `i` 'th root of `n` (taking the floor) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wparentheses" +// Accurately find `i` 'th root of `n` (taking the floor) inline ll root(ll n, ll i) { ll l = 0, r = pow(LLONG_MAX, ld(1) / i); while (l < r) {