struct trie { void insert1(char *str) { int len = strlen(str); int root = 0; for (int i = 0; i < len; i++) { int id = str[i] - 'a'; if (tree[root][... ...
分类:
其他好文 时间:
2019-07-30 21:54:42
阅读次数:
117
Correcting Mistakes CodeForces - 533E Analyzing the mistakes people make while typing search queries is a complex and an interesting work. As there is ...
分类:
其他好文 时间:
2019-07-30 21:34:25
阅读次数:
97
Monkey and Banana A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, an ...
分类:
其他好文 时间:
2019-07-30 16:02:03
阅读次数:
98
首先在子组件将localstorage方法进行封装 在父组件中对其进行引用 将输入的值存入到定义的searchHistory数组中,存储localstorage需要传两个参数,变量名为searchHistory,值为searchHistory的数组,调用封装好的setStore方法 将存储到loca ...
分类:
其他好文 时间:
2019-07-30 12:42:14
阅读次数:
88
今天hdu的比赛的第一题,凸包+区间dp。 给出n个点m个圆,n<400,m<100,要求找出凸包然后给凸包上的点连线,连线的两个点不能(在凸包上)相邻,连线不能与圆相交或相切,连线不能相交但是可以有公共端点。 首先找出凸包,然后把n*n条边和m个圆算点到直线距离验证一下边是否与圆相交存到e[n][ ...
分类:
其他好文 时间:
2019-07-30 00:43:50
阅读次数:
115
用户的两种登录模式 1.LDAP登录 //ldapLogin 通过LDAP登陆 func (m Member) ldapLogin(account string, password string) ( Member, error) { if beego.AppConfig.DefaultBool(" ...
分类:
其他好文 时间:
2019-07-29 21:49:34
阅读次数:
206
1 /* 2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. 3 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license t... ...
分类:
编程语言 时间:
2019-07-29 14:14:10
阅读次数:
98
yum--->软件包管理器是一个基于RPM的软件包管理器能够从指定服务器自动下载RPM包并且安装可以处理软件之间的依赖关系,一次性安装所有依赖的软件包yum源分为本地yum源与网络yum源yumcleanall--->清除原有yum缓存repolist--->列出仓库信息installsoftware--->安装update--->更新(更新单个软件)listsoft
分类:
系统相关 时间:
2019-07-28 19:22:28
阅读次数:
147
关闭一个窗口有几种方式:最小化这个窗口,隐藏这个窗口,释放这个窗口,这句话就是说但这个窗口关闭的时候释放这个窗口,它应该是在form的onclose事件里面的 就是form.onclose() begin Action:=cafree; end;它的做用是不是相当于form.relase或form. ...
分类:
其他好文 时间:
2019-07-28 17:48:25
阅读次数:
603
本文基于https://blog.csdn.net/v_july_v/article/details/7041827 ...
分类:
其他好文 时间:
2019-07-28 17:19:37
阅读次数:
79