会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hulian425
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
下一页
2020年10月26日
关于树的先序遍历,层次遍历,后序遍历
摘要: // 已知后序遍历和中序遍历,求层次遍历#include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<map> using namespace std; #define STDIN freopen(
阅读全文
posted @ 2020-10-26 19:36 hulian425
阅读(178)
评论(0)
推荐(0)
2020年10月21日
汇编程序框架
摘要: ; 伪指令是由编译器来执行的指令 ; segment 和ends 是一对成对使用的伪指令,说明一段开始,一段结束 assume cs:codesg ;用assume将有特定用途的段和相关的段寄存器关联起来 codesg segment ; 定义一个段,段的名称为"codesg", 这个段从此开始 m
阅读全文
posted @ 2020-10-21 14:11 hulian425
阅读(294)
评论(0)
推荐(0)
2020年10月9日
linux shell 编程, 输入目录显示该目录下所有文件名
摘要: #!bin/bash read -p "请输入目录" Dir echo $Dir cd /$Dir for file in $(ls *) do echo $file done
阅读全文
posted @ 2020-10-09 14:28 hulian425
阅读(511)
评论(0)
推荐(0)
2020年9月30日
DOSBox
摘要: mount c: d:\masm c: masm *.asm // 编译 link *.obj // 对目标文件进行连接,从而得到可执行文件。 debug *.exe -r -t // 往下执行 -q -d 076a:0 cs, ds, ss, es 这几个寄存器数据不能直接放进去 i/ 间接寻址
阅读全文
posted @ 2020-09-30 15:56 hulian425
阅读(269)
评论(0)
推荐(0)
2020年9月28日
android 布局
摘要: 按钮 <Button android:id="@+id/Button1" // 唯一标识符 android:layout_width="match_parent" // layout_width 指定当前元素的宽度 // match_parent 让当前元素和父元素一样宽 android:layou
阅读全文
posted @ 2020-09-28 23:41 hulian425
阅读(133)
评论(0)
推荐(0)
dfs序和欧拉序
摘要: 欧拉序 定义: 树的欧拉序是对树进行DFS的一种序列。有两种形式: 1、在每个结点进和出都加进序列。 2、只要到达每一个结点就把他加进序列。 例如:给出一棵树: Tree 第一种方法得到的序列和对应的进出状态分别是: 1 2 3 3 4 4 5 5 2 6 7 7 8 8 6 1 进 进 进 出 进
阅读全文
posted @ 2020-09-28 20:25 hulian425
阅读(300)
评论(0)
推荐(1)
2020年9月27日
关于xml
摘要: xml 简介 XML 在 Web 中起到的作用不会亚于一直作为 Web 基石的 HTML。 XML 是各种应用程序之间进行数据传输的最常用的工具。 xml与html的区别 HTML 中使用的标签都是预定义的。HTML 文档只能使用在 HTML 标准中定义过的标签(如 <p>、<h1> 等等)。XML
阅读全文
posted @ 2020-09-27 07:25 hulian425
阅读(111)
评论(0)
推荐(0)
2020年9月19日
Memory Limit Exceeded
摘要: 1. 使用bfs时候出现了这种错误 错误写法 void bfs() { priority_queue<int, vector<int>, greater<int> > heap; heap.push(0); for (int i = 0; i <= n; i++) st[i] = false; st
阅读全文
posted @ 2020-09-19 18:26 hulian425
阅读(682)
评论(0)
推荐(0)
浙江省程序设计竞赛2019
摘要: B - Element Swapping ZOJ - 4101 题意: 题解 可以求得a[i] + a[j] = d2/d1 #include <iostream> #include <string> #include <cstdlib> #include <algorithm> #include
阅读全文
posted @ 2020-09-19 13:51 hulian425
阅读(292)
评论(0)
推荐(0)
2020年9月15日
hdu3974 Assign the task
摘要: Assign the task HDU - 3974 题意: 一棵树 两种操作 1. "C x" 查询节点x的颜色 2."T x y" 将以x为根节点的子树的颜色全部染为k 题解: dfs序+线段树 #include <iostream> #include <cstdio> #include <al
阅读全文
posted @ 2020-09-15 19:48 hulian425
阅读(177)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
下一页
公告