最短路_1018 Public Bike Management (30 分)

1018 Public Bike Management (30 分) There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the city. The Publ
分类: 其他 发布时间: 12-31 23:08 阅读次数: 0

贪心_1033 To Fill or Not to Fill (25 分)

1033 To Fill or Not to Fill (25 分) With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different gas station may
分类: 其他 发布时间: 12-31 23:07 阅读次数: 0

Manacher_1040 Longest Symmetric String (25 分)

1040 Longest Symmetric String (25 分) Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given Is PAT&TAP symmetric?, the longest symmetric sub-string is s PAT&TAP s, hence you must output 11. Inpu
分类: 其他 发布时间: 12-31 23:07 阅读次数: 0

lower_bound_1044 Shopping in Mars (25 分)

1044 Shopping in Mars (25 分) Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position for only once and so
分类: 其他 发布时间: 12-31 23:07 阅读次数: 0

dfs_1053 Path of Equal Weight (30 分)

1053 Path of Equal Weight (30 分) Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R to any leaf node L
分类: 其他 发布时间: 12-31 23:06 阅读次数: 0

C++中的命名空间namespace详解及细节参考

名称空间特性 c++中要求可以通过定义一种新的声明区域来创建命名空间,这样目的之一就是提供一个声明名称的区域。一个名称区域中的名称不会与另外一个名称空间的相同名称发生冲突,同时允许程序中的其他部分使用该名称访问空间中声明的东西 使用namespace建立命名空间的栗子: namespace Jack { double a; void fetch(); struct Hell { }; } namespace Jill { int Hell;
分类: 其他 发布时间: 12-31 23:06 阅读次数: 0

模拟_1060 Are They Equal (25 分)

1060 Are They Equal (25 分) If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×105 with simple chopping. Now given the number of significant digits on a machine
分类: 其他 发布时间: 12-31 23:06 阅读次数: 0

c++中的类型转换以及explicit关键字

写在前面 在没有深入接触c++之前,只是简单的知道变量存在自动转换和强制转换,比如,int a = 3.3; 同样也可以对类对象进行自动类型转换以及强制类型转换 类型转换 使用《c++ primer plus》中的例子: /* Stonewt.h文件 */ #ifndef STONEWT_H_ #define STONEWT_H_ namespace STONE { class Stonewt { private: enum { Lbs_to_stn = 14}; int s
分类: 其他 发布时间: 12-31 23:06 阅读次数: 0

dfs_1064 Complete Binary Search Tree (30 分)

1064 Complete Binary Search Tree (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a
分类: 其他 发布时间: 12-31 23:05 阅读次数: 0

AVL_insert_1066 Root of AVL Tree (25 分)

1066 Root of AVL Tree (25 分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore thi
分类: 其他 发布时间: 12-31 23:05 阅读次数: 0

Dijkstra_1072 Gas Station (30 分)

1072 Gas Station (30 分) A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must guarantee that all the houses are in its service ra
分类: 其他 发布时间: 12-31 23:05 阅读次数: 0

C++11多线程thread参数传递问题

目录 写在前面 thread类的构造函数 join函数 detach函数 thread中参数传递 类对象作为参数 类中函数作为参数 参考书籍 写在前面 多线程在很多地方都是必须要掌握的方法,这里先说一下,thread对象的参数传递问题 thread类的构造函数 thread() noexcept; //default constructor 其中noexcept表示函数不会抛出异常,如果抛出异常程序就会终止 template <class Fn, class... Args
分类: 其他 发布时间: 12-31 23:05 阅读次数: 0

Day02多变量线性回归

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34652535/article/details/85419435 多功能 x表示一个向量 我们用多个特征量或者变量来预测Y值,这就是所谓的多元线性回归 多元梯度下降法 多元线性回归模型如下 特征缩放 通过特征缩放,他们值得范围变得相近,这样你得到的梯度下降算法就会更快地收敛 不要太大,也不要太小 特征缩放并不需要太精确,只是为了让梯度下降。以下为均值归一化工作。 学习率 这条曲线显示的是梯
分类: 编程语言 发布时间: 12-31 23:04 阅读次数: 0

centos7下,docker安装gitlab全过程

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_32247833/article/details/85467881 docker安装gitlab 首先说明:安装gitlab,建议至少使用4GB的可用内存,会默认安装redis,nginx等组件 第一步,拉取gitlab镜像 #docker pull gitlab/gitlab-ce 第二步 启动docker容器 sudo docker run --detach –hostname g
分类: 编程语言 发布时间: 12-31 23:04 阅读次数: 0

complex operator + (complex&c1,complex&c2)中的“&”什么意思?

说明参数是引用类型,如果没有&,调用函数的时候要把实参拷贝到堆栈,然后从堆栈中取。 但是一般来说class都比较大,拷贝会浪费堆栈,所以加上&避免了拷贝操作。 并且,与一般函数不同的是,像这样的引用型参数的 函数,你在函数体内对参数做的改动都会真实作用在实参上。
分类: 编程语言 发布时间: 12-31 23:03 阅读次数: 0

.NET平台框架整理(1)

API 框架 NancyFx:轻量、用于构建 HTTP 基础服务的非正式(low-ceremony)框架,基于.Net 及 Mono 平台。官网 ASP.NET WebAPI:快捷创建 HTTP 服务的框架,可以广泛用于多种不同的客户端,包括浏览器和移动设备。官网 ServiceStack:架构缜密、速度飞快、令人愉悦的 web 服务。官网 Nelibur:Nelibur 是一个使用纯 WCF 构建的基于消息的 web 服务框架。Nelibur 可以便捷地创建高性能、基于消息的 web 服务,
分类: 编程语言 发布时间: 12-31 23:03 阅读次数: 0

TIBCO JasperSoft当数据为空时显示/预览提示Document is Empty

一、首先确保预览时不报错(即为只是查询数据返回的数据为空),有其他报错信息则需要提前处理。 二、预览时显示的信息如下: 处理:在Design模式下 处理后的显示结果:
分类: 编程语言 发布时间: 12-31 23:03 阅读次数: 0

python应用领域

python在各个应用领域所使用到的框架: 1. WEB开发 Django pyramid Tornado Bottle Flask web.py 2. 网络编程 Twisted requests Scrapy Paramiko 3. 科学运算 SciPy pandas Ipython 4. GUI图形开发 wxpython PyQT kivy 5. 运维自动化 openstack SaltStack Ansible 腾讯蓝鲸
分类: 编程语言 发布时间: 12-31 23:02 阅读次数: 0

Suse12Sp3 关闭屏保

分类: 编程语言 发布时间: 12-31 23:02 阅读次数: 0

Ubuntu安装问题

在windows应用商店安装ubuntu系统,报错WslRegisterDistribution failed with error: 0x8007019e 1、报错: Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional component is not enabled.
分类: 编程语言 发布时间: 12-31 23:02 阅读次数: 0