摘要: 倍增表又称ST表,是一种离线算法,不支持修改,在离线算法中,复杂度非常快,代码简洁实用 代码: #include<bits/stdc++.h> #define ll long long using namespace std; const int N = (1<<13)+39+7; int n,m, 阅读全文
posted @ 2023-09-11 22:58 天雷小兔 阅读(17) 评论(0) 推荐(0)
摘要: 二.1. 代码: #include<bits/stdc++.h> #define ll long long using namespace std; int n,m,a[239+7][239+7],dx[]={0,1,0,-1},dy[]={1,0,-1,0},dir,x=1,y=1,id=1; b 阅读全文
posted @ 2023-09-11 22:00 天雷小兔 阅读(214) 评论(0) 推荐(0)