You're given a permutation aaa of length nnn (1≤n≤1051 \le n \le 10^51≤n≤105). For each i∈[1,n]i \in [1,n]i∈[1,n], construct a sequence sis_isi? by th ...
分类:
其他好文 时间:
2019-09-13 18:04:26
阅读次数:
114
一、语法基础1> 表格1.1 格式<tahle align="center" border="1px" cellpadding="10%" > <caption>标题</caption> <tr height="36" width="66%" align="center" > <th>表头</th> ...
分类:
其他好文 时间:
2019-09-13 11:30:37
阅读次数:
127
题意:给你一个长度为n的字符串和m组询问,每组询问给出l,r,k,求s[l,r]的第k次出现的左端点。 解法一: 求出后缀数组,按照排名建主席树,对于每组询问二分或倍增找出主席树上所对应的的左右端点,求第k大的下标即可。 解法二: 建立后缀自动机,对后缀树(fail树)作线段树合并可得到每个结点包含 ...
分类:
编程语言 时间:
2019-09-12 23:37:36
阅读次数:
144
You are given an array aa consisting of nn integers, and qq queries to it. ii th query is denoted by two integers lili and riri. For each query, you h ...
分类:
其他好文 时间:
2019-09-12 15:06:55
阅读次数:
85
如何用程序来锁电脑 (Lock) 如何写程序来控制 Windows Lock ( 锁住电脑 ) 方法 1 :' 用 Shell 函数调用 Rundll32 来做 LockWorkStationShell("rundll32 user32.dll,LockWorkSta... ...
分类:
其他好文 时间:
2019-09-12 10:29:26
阅读次数:
126
I really appreciate for your help. Thanks so much for your flower. Execuse me, where is the train station? What do you think? What do you think about ...
分类:
其他好文 时间:
2019-09-11 23:32:24
阅读次数:
142
linux 系统下mysql数据库的主从复制搭建与配置
分类:
数据库 时间:
2019-09-11 16:24:27
阅读次数:
89
Java中线程的状态定义在java.lang.Thread类中的一个枚举中。 1 public enum State { 2 /** 3 * Thread state for a thread which has not yet started. 4 */ 5 NEW, 6 7 /** 8 * Th ...
分类:
编程语言 时间:
2019-09-11 09:57:34
阅读次数:
67
On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence ...
分类:
其他好文 时间:
2019-09-09 22:48:45
阅读次数:
387
使用基于ListView的扩展组件ExpandableListView制作类似QQ好友的列表 这里会用到SimpleExpandableListAdapter这个适配器 首先看一下这个适配器的构造方法 / Constructor @param context The context where th ...
分类:
其他好文 时间:
2019-09-09 22:32:16
阅读次数:
107