mirror of
https://gitcode.com/Zengtudor/alg2025.git
synced 2025-08-21 10:42:07 +00:00
update
This commit is contained in:
parent
48ef07ec43
commit
321c58cc95
@ -28,10 +28,7 @@ int main(){
|
||||
}
|
||||
|
||||
for(ll j=1;j<lg2[n]+2;j++){
|
||||
for(ll i=1;i<=n;i++){
|
||||
if(i+(1ll<<j)-1>n){
|
||||
break;
|
||||
}
|
||||
for(ll i=1;i<=n && i+(1ll<<j)-1<=n;i++){
|
||||
st[i][j]=std::max(st[i][j-1],st[i+(1ll<<(j-1))][j-1]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user