2020年3月21日

摘要: 1.Point3d类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RayTracing { 阅读全文
posted @ 2020-03-21 16:45 二进制dd 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-21 13:10 二进制dd 阅读(105) 评论(0) 推荐(0) 编辑

2020年3月18日

摘要: #include<iostream> using namespace std; int map[15][15]; int c[15],v1[15],v2[15]; int n,cnt; void dfs(int x,int p){ if(x==n && p==2){ cnt++; return; } 阅读全文
posted @ 2020-03-18 16:29 二进制dd 阅读(179) 评论(0) 推荐(0) 编辑

2020年3月17日

摘要: 9*9的数独求解 #include<cstdio> #include<iostream> using namespace std; char map[15][15]; bool f; bool visx[15][15],visy[15][15],visnine[15][15]; void dfs(i 阅读全文
posted @ 2020-03-17 22:15 二进制dd 阅读(254) 评论(0) 推荐(0) 编辑

2020年3月15日

摘要: #include<iostream> using namespace std; int n,sum; int num[105]; bool f; bool vis[105]; void dfs(int count,int sum1,int posit){ if(f){ return; }//找到直接 阅读全文
posted @ 2020-03-15 17:48 二进制dd 阅读(131) 评论(0) 推荐(0) 编辑

2020年3月11日

摘要: #include<cstdio> #include<string> using namespace std; int n,m; char map[105][105]; bool vis[105][105]; int cnt; int ans=-1; void dfs(int x,int y){ if 阅读全文
posted @ 2020-03-11 16:05 二进制dd 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> using namespace std; int n,m; int ans; char map[105][105]; bool vis[105][105]; void dfs(int x,int y){ if(x<0||x>=n||y<0||y>=m||vis[x 阅读全文
posted @ 2020-03-11 15:24 二进制dd 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<string> using namespace std; int n,m,cnt; //分别为地图规模,和需要多少人 char map[105][105]; //存储地图值 bool vis[105][105]; //存储是否走过 void dfs 阅读全文
posted @ 2020-03-11 14:43 二进制dd 阅读(178) 评论(0) 推荐(0) 编辑

2020年3月10日

摘要: #include<cstdio> using namespace std; char maze[15][15];//用来存储棋盘的大小 bool vis[15][15];//存储判断当前点是否走过 int n,m; //棋盘的行和列 bool f; //标识 int dir[8][2]={{-2,- 阅读全文
posted @ 2020-03-10 13:35 二进制dd 阅读(210) 评论(0) 推荐(0) 编辑

2020年3月9日

摘要: 问题:输入n,m表示迷宫的规模n行m列,之后n行输入迷宫的值, '.'表示路,'*'表示墙,'s'表示起点,'T'表示终点,找出迷宫的解并用字符m标记路线。 #include<iostream> using namespace std; int n,m; //规模 char maze[105][10 阅读全文
posted @ 2020-03-09 21:38 二进制dd 阅读(201) 评论(0) 推荐(0) 编辑

导航