Update template.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
e7dbf85bac
commit
774d9e829b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue