题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 题意 给出一个 $n$ 点 $m$ 边的带权无向图,找出结点 $1$ 到结点 $n$ 的路径最小权。($n \le 100, m \le 10000$) 题解 $n$ 的范围较小,可以用 $O_{ ...
分类:
其他好文 时间:
2020-07-27 09:38:16
阅读次数:
51
When you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name ab ...
分类:
其他好文 时间:
2020-07-27 09:29:30
阅读次数:
82
C. Easy 构造两个序列分别要满足 \(\sum_{i=1}^{k} a_{i} = N\) \(\sum_{i=1}^{k} b_{i} = M\) 一种方案能贡献$\prod_^ min(a_, b_)$ 的分数 求所有方案分数的和 生成函数 对于一个序列 $a_{0},a_{1},a_{2 ...
分类:
其他好文 时间:
2020-07-27 09:22:06
阅读次数:
69
//判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ ...
分类:
其他好文 时间:
2020-07-27 09:18:05
阅读次数:
68
celery的使用 # 1 异步任务框架,执行异步任务,执行延迟任务,执行定时任务 # 2 Celery is a project with minimal funding, so we don’t support Microsoft Windows. Please don’t open any i ...
分类:
其他好文 时间:
2020-07-26 23:15:34
阅读次数:
64
一:下载(借鉴:https://wenda.so.com/q/1470863138729940) 1.网址:https://dev.mysql.com/downloads/mysql/5.6.html#downloads 2.这里还可以选择版本,由于这里写的是5.6的安装,所以我没有更换,仍选择5. ...
分类:
数据库 时间:
2020-07-26 19:45:11
阅读次数:
96
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6756 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107590312 Problem Description Given an ...
分类:
其他好文 时间:
2020-07-26 15:58:23
阅读次数:
139
适配器模式 概述 使用适配器类让一个对象获得或拥有另一个对象的行为,单向兼容或者双向兼容(相互兼容)。 适配器模式很好理解,就是让本不兼容的对象,用适配器让他们相互兼容。 话不多说,看代码 我举一个数据线接口的例子: Type-C孔 public class TypeC_Hole { private ...
分类:
其他好文 时间:
2020-07-26 15:47:04
阅读次数:
81
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:
其他好文 时间:
2020-07-26 02:05:42
阅读次数:
102
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own ...
分类:
编程语言 时间:
2020-07-26 02:03:02
阅读次数:
95