会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴屿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
51
52
53
54
55
56
57
58
59
···
63
下一页
2019年10月27日
Virtual Judge HDU 1241 Oil Deposits
摘要: 八方向 深搜
阅读全文
posted @ 2019-10-27 00:28 晴屿
阅读(112)
评论(0)
推荐(0)
2019年10月26日
洛谷P1379 八数码难题
摘要: https://www.luogu.org/problem/P1379 这个代码需要用c++11提交。
阅读全文
posted @ 2019-10-26 23:46 晴屿
阅读(148)
评论(0)
推荐(0)
AcWing 845. 八数码
摘要: https://www.acwing.com/problem/content/847/
阅读全文
posted @ 2019-10-26 23:36 晴屿
阅读(191)
评论(0)
推荐(0)
AcWing 785. 快速排序
摘要: https://www.acwing.com/problem/content/787/ 快排是先排序,再递归。归并是先递归,在排序 快排 双向指针
阅读全文
posted @ 2019-10-26 23:30 晴屿
阅读(152)
评论(0)
推荐(0)
AcWing 787. 归并排序
摘要: https://www.acwing.com/problem/content/789/
阅读全文
posted @ 2019-10-26 23:30 晴屿
阅读(108)
评论(0)
推荐(0)
2019年10月25日
AcWing 844. 走迷宫
摘要: 深搜模板题 https://www.acwing.com/problem/content/846/ 模拟队列 输出路径 应用队列
阅读全文
posted @ 2019-10-25 17:27 晴屿
阅读(226)
评论(0)
推荐(0)
AcWing 842. 排列数字
摘要: 深搜的一道水题 https://www.acwing.com/problem/content/844/ 正确输入输出
阅读全文
posted @ 2019-10-25 17:25 晴屿
阅读(213)
评论(0)
推荐(0)
2019年10月22日
算法竞赛入门经典第二版 回文词P49
摘要: 如果ch是大写字母,则ch-‘A’就是它在字母表中的序号,(A的序号为0,B为1) 如果ch为数字,那么ch-‘0’就是这个数值本身,' 5 ' - ' 0 ' =5;
阅读全文
posted @ 2019-10-22 21:41 晴屿
阅读(166)
评论(0)
推荐(0)
算法竞赛入门经典第二版 TeX中的引号 P47
摘要: scanf("%s", )输入字符串,碰到空格或者TAB就会停下来,虽然下次调用的时候会输入下一个字符串,可是不知道两次输入的字符串中间有多少个空格、TAB甚至换行符。所以,在处理此题的时候,可以用以下两种方法。 第一种是使用fgetc(fin),它读取一个打开的文件fin,读取一个字符,然后返回一
阅读全文
posted @ 2019-10-22 11:33 晴屿
阅读(134)
评论(0)
推荐(0)
算法竞赛入门经典第二版 蛇形填数 P40
摘要: #include using namespace std; #define maxn 20 int a[maxn][maxn]; int main(){ int n,x,y,tot=0; cin>>n; memset(a,0,sizeof(a)); tot=a[x=0][y=n-1]=1; while(tot=0&&!a[x][y-1]) a[x][-...
阅读全文
posted @ 2019-10-22 11:31 晴屿
阅读(164)
评论(0)
推荐(0)
上一页
1
···
51
52
53
54
55
56
57
58
59
···
63
下一页
公告