通用:模板;
#include <iostream> //常用开头模板,保存在文档,下次直接用
#include <algorithm>
#include <cstring>
#include <queue>
#define sx first
#define sy second
using namespace std;
typedef long long LL;
typedef pair<int,int>PII;
const int N=100010,mod=1e9+7;
int dx[]={1,-1,0,0}; //常用开头模板,保存在文档,下次直接用
int dy[]={0,0,1,-1};
int n,m;
int g[N];
bool st[N];
int dist[N];
int f[N];
int main()
{
return 0;
}
dp模板
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
const int N=1010;
int n,m;
int f[N];
int t;
int g[N];
int main()
{
return 0;
}
模拟模板
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
const int N=1010;
int n,m;
int t;
int g[N];
int main()
{
return 0;
}