自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 八皇后

#include<iostream>using namespace std;int n=0,a[15]={0},b[15]={0},c[27]={0},d[27]={0},ans=0; void dfs(int step){ if(step>n){ if(ans<3){ for(int p=1;p<=n;p++){ cout<<a[p]<<" "; } cout<<endl; } ans+

2020-07-28 21:38:55 86

原创 深搜模板

#include<iostream>using namespace std;int n=0,a[15]={0},b[15]={0}; void dfs(int step){ if(step>n){ for(int p=1;p<=n;p++){ cout<<a[p]; } cout<<endl; return; } for(int i=1;i<=n;i++){ if(b[i]==0){ b[i]=1;

2020-07-28 21:38:20 127

原创 广搜模板

#include<iostream>using namespace std;int startx,starty,n,mint book[105][105]={0},map[105][105]={0};struct node{ int x; int y; int step;};int main(){ //输入地图 cin>>m>>n; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){

2020-07-28 21:37:32 112

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除