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
//判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ ...
分类:
其他好文 时间:
2020-07-27 09:18:05
阅读次数:
68
来源:https://blog.csdn.net/jinhaijing/article/details/83902191 使用@Value赋值的几种类型; //1、基本数值 //2、可以写SpEL; #{}。 SpEL(Spring Expression Language),即Spring表达式语言 ...
分类:
编程语言 时间:
2020-07-26 22:50:18
阅读次数:
112
String String类是不可变类,即一旦一个String对象被创建以后,包含在这个对象中的字符序列是不可改变的,直至这个对象被销毁 String a="asd"; a="fgh"; 在这里,再次给a赋值时,并不是对原来堆中实例对象进行重新赋值,而是生成一个新的实例对象,并且指向“456”这个字 ...
分类:
其他好文 时间:
2020-07-26 19:42:59
阅读次数:
65
题目链接: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
python基础--面向对象 在这里我们和大家说一下,推荐几本python的好书。 python核心编程、基础教程、流畅的python、数据结构与算法(机械工业出版社)、cook book 推荐用书:python核心编程、流畅的python、cook book (1)super的应用 我们先看一下下 ...
分类:
编程语言 时间:
2020-07-26 15:35:17
阅读次数:
74
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
A. Poker (Hdu ????) 题目大意 给定n个币,每次投至少m个,当投$x$个时,给回$\lfloor x \times (1 - p %) \rfloor$。问你最多能投多少次。 解题思路 很显然每次投$m$元是最优的,因为但凡投$m+1$元,给回的钱数不可能会增加二,要不不变要不减少 ...
分类:
其他好文 时间:
2020-07-26 01:12:43
阅读次数:
213
子类构造方法中默认包含一个 super()方法,即父类构造方法。 子类构造方法可以通过 super 调用父类重载构造方法 super 的父类构造调用,必须是子类构造方法的第一个语句,不能一个子类构造方法super调用多次父类构造 总结: 子类必须调用父类构造方法,不写默认有一个super(); 写了 ...
分类:
编程语言 时间:
2020-07-26 00:54:42
阅读次数:
64
http://acm.hdu.edu.cn/showproblem.php?pid=6754 题意: 字符串由小写字母构成 求 长度为N的 回文子串数量最少的 字符串的个数 思路: 长度为1的串 回文子串最少1个 形式:a 长度为2的串 回文子串最少2个 形式:aa / ab 长度为3的串 回文子串 ...
分类:
其他好文 时间:
2020-07-26 00:24:53
阅读次数:
55