摘要: DP一遍过无剪枝 -- 解题思路:类似题:62不同路径在类似题中,用dp[i][j]表示到达(i, j)的方案数联想到 => 用dp[i][j]表示这条路能否走验证:用dp[i][j]表示解的状态(下标(i,j)是否在解的路径上)首先如果起点或者终点就是障碍,那么直接不可能有解的路径设定了状态,找状 阅读全文
posted @ 2020-12-16 20:15 Kxzh 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/qq_32595453/article/details/80563142 一、URI <1>什么是URI URI,统一资源标志符(Uniform Resource Identifier, URI),表示的是web上每一种可用的资源,如 HTML文档、图 阅读全文
posted @ 2020-12-04 19:15 Kxzh 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 具体命令为: xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode Virtual1 1920x1080 xrandr --output V 阅读全文
posted @ 2020-12-02 15:04 Kxzh 阅读(1638) 评论(0) 推荐(0) 编辑
摘要: 1、网络连接设置为NAT模式2、开启CentOS7,以root用户登陆3、修改配置,网络配置文件为:/etc/sysconfig/network-scripts/ifcfg-ens33(以本机为例)4、设置BOOTPROTO=dhcp,ONBOOT=yes5、windows开启 VMware DHC 阅读全文
posted @ 2019-12-31 16:54 Kxzh 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 通过root用户进入系统后,如下所示: 默认情况下CentOS最小化安装使用NetworkManager服务来控制联网服务,但是在生产环境中一般使用系统自带的network服务而不是NetworkManager,因此需要手动关闭NetworkManager服务。具体操作如下: 然后通过vi命令编辑网 阅读全文
posted @ 2019-12-31 11:08 Kxzh 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 本次使用的是VMware Workstation 15+CentOS-7-x86_64-DVD-1804。其中CentOS的下载地址为:http://vault.centos.org/ VMware界面如下: 新建虚拟机的步骤如下: 在这一步中先跳过自定义硬件,可以先点完成结束配置;然后在下图中右键 阅读全文
posted @ 2019-12-31 10:53 Kxzh 阅读(488) 评论(0) 推荐(0) 编辑
摘要: #include #include int n; /* * 合并 */ void Merge(int *source, int *target, int i, int m, int n) { int j, k; for (j = m + 1, k = i; i <= m && j <= n; k++) { if (source[i] <= so... 阅读全文
posted @ 2019-05-24 20:30 Kxzh 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #include #include int n; //元素个数 int bit_num; //最大数字位数 /* * 获取相应位置上的数(从右到左) */ int GetNumInPos(int num, int pos) { int i, temp = 1; for (i = 0; i = 0; i--) { j ... 阅读全文
posted @ 2019-05-24 20:30 Kxzh 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include #include int n; /* * 生成堆 */ void HeapAdjust(int *array, int s, int m) { int i; array[0] = array[s]; for (i = s * 2; i 0; i--) { HeapAdjust(array, i, n); } ... 阅读全文
posted @ 2019-05-24 20:28 Kxzh 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #include #include int n; /* * 选择排序 */ void SelectSort(int *array) { int i, j, k, temp; for (i = 0; i < n; i++) { k = i; for (j = i + 1; j < n; j++) { ... 阅读全文
posted @ 2019-05-24 20:27 Kxzh 阅读(87) 评论(0) 推荐(0) 编辑