1
0
Fork 0

Update template.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-12-06 10:02:48 +00:00
parent e7dbf85bac
commit 774d9e829b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {