摘要:
倍增表又称ST表,是一种离线算法,不支持修改,在离线算法中,复杂度非常快,代码简洁实用 代码: #include<bits/stdc++.h> #define ll long long using namespace std; const int N = (1<<13)+39+7; int n,m, 阅读全文
摘要:
二.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 阅读全文
摘要:
1. 解析: 送分题,按题意模拟即可 代码: #include<bits/stdc++.h> #define ll long long #define x first #define y second using namespace std; const int N = 39+7; int a[N] 阅读全文