1812: [Ioi2005]riv Time Limit: 10 Sec Memory Limit: 64 MB Submit: 635 Solved: 388 "[Submit" ] "[Status" ] "[Discuss" ] Description 几乎整个Byteland王国都被森林和 ...
分类:
其他好文 时间:
2018-10-15 23:26:19
阅读次数:
342
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2018-10-15 23:09:27
阅读次数:
168
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2018-10-15 21:48:11
阅读次数:
172
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, ...
分类:
其他好文 时间:
2018-10-14 13:49:43
阅读次数:
173
1. 询问名字 常用句子 Hi, may I have your name, please? Could you please tell me your name? Will it be convenient for you if I have your name? your name? What ... ...
分类:
其他好文 时间:
2018-10-14 11:20:34
阅读次数:
229
题目传送门:POJ-1679 The Unique MST 题目大意: 题目给了一个无向图,判断该图的最小生成树是否唯一。 分析: 要求出无向图的次小生成树,若次小生成树的权值和最小生成树权值一样,则最小生成树不唯一,否则唯一。 求次小生成树:首先需要求出最小生成树,然后暴力枚举非最小生成树的边,将 ...
分类:
其他好文 时间:
2018-10-13 02:27:47
阅读次数:
119
约束用于限制加入表中数据的类型 约束的种类: 非空约束(NOT NULL):约束列不接受NULL值,强制字段始终包含值。 唯一约束(UNIQUE):约束一列或一组列中的数据是唯一的。表中可以有多个唯一约束。 主键约束(PRIMARY KEY):约束一列或一组列中的数据是唯一的,且不能改动,一个表中只 ...
分类:
其他好文 时间:
2018-10-12 19:31:24
阅读次数:
152
10.索引的设计和使用10.1 索引概述BTREE索引:Mysql(MyIASM和Innodb)默认的索引类型。前缀索引:对索引字段的前N个字符创建索引。N的最大取值和存储引擎有关,MyIASM支持最大前缀长度为1000字节,Innodb引擎支持最大前缀长度为767字节。全文索引:可用于全文搜索。仅 ...
分类:
数据库 时间:
2018-10-12 14:11:16
阅读次数:
157
运算符是一个保留字或字符,主要用于连接WHERE后面的条件。 一、算数运算符 运算符 | 描述 | + 加法 | 把运算符两边的值相加 减法 | 左操作数减去右操作数 乘法 | 把运算符两边的值相乘 / 除法 | 左操作数除以右操作数 % 取模 | 左操作数除以右操作数后得到的余数 二、比较运算符 ...
分类:
数据库 时间:
2018-10-11 15:09:25
阅读次数:
3046
删除约束注意: 网上说是 ALTER TABLE 表名 DROP CONSTRAINT 约束名; 这里的CONSTRAINT 是指primary key,foreign key,unique,等实际的约束,删除的时候需要用对应的替换(注意:唯一性约束用 INDEX) ...
分类:
数据库 时间:
2018-10-10 22:01:29
阅读次数:
287