- 博客(3)
- 收藏
- 关注
原创 搜索回溯训练
搜索回溯训练 一、题目列表 1. Red and Black (添加链接描述 2. The Sultan’s Successors (添加链接描述) 3. The Settlers of Catan(添加链接描述) 4. Transportation(添加链接描述) 5. Don’t Get Rooked(添加链接描述) 6. 8 Queens Chess Problem(添加链接描述) 二、题目分析** ----------Red and Black 题意:求从起点即@的位置出发能走到所有黑色砖块 思路:
2020-07-20 03:09:20
128
原创 Nastya and Door(CF1341B)-暴力&前缀和
Nastya and Door 题目链接 Time limit 1000 ms -------- Memory limit 262144 kB On February 14 Denis decided to give Valentine to Nastya and did not come up with anything better than to...
2020-05-01 23:06:30
265
原创 二分搜索与STL二分查找
二分搜索与STL二分查找 一丶二分搜索 用法:搜索非递减数列中是否包含某个元素 当数据量比较大的时候,二分比线性搜索高效得多。 流程:查找36 代码实现:对象是非递减序列,如果当数据无序时,需要预先进行一次排序。 int binarysearch(int A[],int key,int n)//n为数组长度 { int left=0,right=n,mid; while( left &l...
2020-03-10 23:18:13
141
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人