void make_ST(){
     for(int i=1;i<=n;i++){
         st[i][0]=height[i];
         for(int j=1;i+(1<<j)-1<=n;j++){
             st[i][j]=min(st[i][j-1],st[i+(1<<(j-1))][j-1]);
         }
     }
}

 

相关文章:

  • 2021-07-09
  • 2021-10-29
  • 2022-12-23
  • 2021-12-08
  • 2021-07-06
  • 2022-01-18
  • 2021-06-29
猜你喜欢
  • 2021-05-29
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案