$$ \texttt{Preface} $$ 赛时,把 " 任意时刻 " 理解成 " 整数时刻 " 了,看起来一脸不可做的亚子,还各种推式子。 ~~话说我为什么觉得 E 比 F 还难。~~ $$ \texttt{Description} $$ 一个坐标轴 $OX$ 上有 $n$ 个点,第 $i$ 个 ...
分类:
其他好文 时间:
2020-02-25 12:32:36
阅读次数:
108
(一)线段树 1.E - Lost Cows N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neig ...
分类:
其他好文 时间:
2020-02-25 00:34:58
阅读次数:
174
```cpp #include #include #include //auto ptr //shared_ptr //unique_ptr //weak_ptr class Parent; //采用前置声明 using ParentPtr = std::shared_ptr; typedef st... ...
分类:
编程语言 时间:
2020-02-24 21:03:42
阅读次数:
90
```cpp #include #include #include class Object; typedef std::unique_ptr UniqueObjectPtr; using ObjectPtr = std::shared_ptr; void print(const UniqueObj... ...
分类:
编程语言 时间:
2020-02-24 20:24:28
阅读次数:
73
常用国内镜像地址: 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 阿里云 https://mirrors.aliyun.com/pypi/simple/ 豆瓣 https://pypi.douban.com/simple/ 中国科学技术大学 https ...
分类:
其他好文 时间:
2020-02-23 16:40:24
阅读次数:
89
权限和分组 登录、注销和登录限制 1. 登录 在使用authenticate进行验证后,如果验证通过了,那么就会返回一个user对象,拿到user对象之后,可以使用django.contrib.auth.login进行登录,部分示例代码如下: 2. 注销: 注销、或者是退出登录,我们可以通过djan ...
分类:
其他好文 时间:
2020-02-23 16:39:05
阅读次数:
168
通过annotation(注解)来映射hibernate实体的,基于annotation的hibernate主键标识为@Id, 其生成规则由@GeneratedValue设定的.这里的@id和@GeneratedValue都是JPA的标准用法。 JPA提供的四种标准用法为TABLE,SEQUENCE ...
分类:
其他好文 时间:
2020-02-23 11:37:47
阅读次数:
79
一、对数据行的增删改查 增:insert into tableName () values(),() 可以一次插入多条或者一条,前面可以指定插入的字段,不指定的话默认为建表时的顺序 删:delete from tableName where.... 改:update tableName set 字段 ...
分类:
数据库 时间:
2020-02-23 11:24:51
阅读次数:
77
ref : "How do I enable UBIFS?" How do I enable UBIFS? Since UBIFS works on top of UBI, you have to enable UBI first (see "here" ). Then in the Linux c ...
分类:
其他好文 时间:
2020-02-22 11:45:50
阅读次数:
76
1 """ 2 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which giv ...
分类:
其他好文 时间:
2020-02-20 13:06:07
阅读次数:
65